# matlab1 - A=[-3 4 5 -2; 3 4 -8 1] A= -3 3 4 4 5 -8 -2 1...

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

A=[-3 4 5 -2; 3 4 -8 1] A A = A -3 4 5 -2 3 4 -8 1 B=[3 4; 5 -3; 6 8] B B = B 3 4 5 -3 6 8 C=randn(3,3) C C = C -0.4326 0.2877 1.1892 -1.6656 -1.1465 -0.0376 0.1253 1.1909 0.3273 D=randn(4,3) D D = D 0.1746 2.1832 0.0593 -0.1867 -0.1364 -0.0956 0.7258 0.1139 -0.8323 -0.5883 1.0668 0.2944 D*C D ans = a -3.7044 -2.3821 0.1449 0.2960 -0.0112 -0.2482 -0.6080 -0.9131 0.5864 -1.4854 -1.0416 -0.6434 C*D ??? Error using ==> mtimes Inner matrix dimensions must agree. I B*A B ans = a 3 28 -17 -2 -24 8 49 -13 6 56 -34 -4 x=[3;-2;4;] x x = x 3 -2

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

View Full Document
4 y=xC ??? Undefined function or variable 'xC'. ? y=Cx ??? Undefined function or variable 'Cx'. ? y=C*x y y = y 2.8836 -2.8543 -0.6967 p=D*(x+y); q=D*x; r=D*y; p-(q+r) p ans = a 1.0e-015 * 0 0.1110 -0.6661 0 w=zeros(2,4) w w = w 0 0 0 0 0 0 0 0 I4=eye(4) I I4 = I 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 I3=eye(3) I I3 = I 1 0 0 0 1 0 0 0 1 D D = D
0.1746 2.1832 0.0593 -0.1867 -0.1364 -0.0956 0.7258 0.1139 -0.8323 -0.5883 1.0668 0.2944 I4*D I ans = a 0.1746 2.1832 0.0593 -0.1867 -0.1364 -0.0956 0.7258

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/05/2010 for the course MATH 3353 taught by Professor Hagstrom during the Fall '09 term at Southern Methodist.

### Page1 / 6

matlab1 - A=[-3 4 5 -2; 3 4 -8 1] A= -3 3 4 4 5 -8 -2 1...

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

View Full Document
Ask a homework question - tutors are online