{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Matlab 1

# Matlab 1 - MATLAB Code A =[1 2 0 2 5-1 4 10-1 B =[13 24 53...

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

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

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

View Full Document
Homework Question 2 - Part 2 Homework Question 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 Homework Question 4 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

{[ snackBarMessage ]}

### Page1 / 3

Matlab 1 - MATLAB Code A =[1 2 0 2 5-1 4 10-1 B =[13 24 53...

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

View Full Document
Ask a homework question - tutors are online