Matlab 1

Matlab 1 - MATLAB Code A = [1 2 0; 2 5 -1; 4 10 -1] B =...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Jeffrey Birenbaum 9/14/10 SEAS 001 - Week 2 Matlab Homework 1 Homework Question 1 Homework Question 2 - Part 1 MATLAB Code roots([1 9 -37 -357 -36 1620]) Solution ans = -9.0000 6.0000 -5.0000 -3.0000 2.0000 MATLAB Code A = [1 2 0; 2 5 -1; 4 10 -1] B = [20; 46; 95] x = inv(A) * B Solution x = 2 9 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Homework Question 2 - Part 2 Homework Question 3 Homework Question 4
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MATLAB Code A = [1 2 0; 2 5 -1; 4 10 -1] B = [13; 24; 53] x = inv(A) * B Solution x = 7 3 5 MATLAB Code sin(cos(exp(log(25)))) + 100 * ((55/7) - 1000 * (tan(.23)) Solution ans =-2.2628e+04 MATLAB Code n = 1:1:200; a = (-1).^n .* (n.^3 + n)./(n+1).^3 b = sin(n.^3) plot(n,a, 'bx' ,n,b, 'r.' ),shg Solution...
View Full Document

This note was uploaded on 11/17/2011 for the course SEAS 1001 taught by Professor Sharohkahmadi during the Fall '10 term at GWU.

Page1 / 3

Matlab 1 - MATLAB Code A = [1 2 0; 2 5 -1; 4 10 -1] B =...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online