{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# lecture3 - 5 7 ans = 12 ans ans = 12 5 8 ans = 13 x = 5 7 x...

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

Sheet1 Page 1 5+7 ans = 12 ans ans = 12 5+8 ans = 13 x = 5+7 x = 12 x = 5+8 x x = 13 5+8=x ??? 5+8=x | {Error: The expression to the left of the equals sign is not a valid target for an assignment. } X = 5+9 X = 14 x x = 13 X

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

View Full Document
Sheet1 Page 2 X = 14 a = 7, b=5 a = 7 b = 5 a = 8 b = 6 b = 6 a a = 8 pi ans = 3.14 format long pi ans = 3.14 format long e pi ans = 3.14E+000 eps ans = 2.22E-016
Sheet1 Page 3 format e {??? Error using ==> format Unknown command option. } format short e format short g pi ans = 3.14 eps ans = 2.22E-016 y = 3+5*i y = 3 + 5i a = [1 2 3 4] a = 1 2 3 4 a = [1 2 3 4]' a = 1 2 3 4 a = [1 2 3 4] a = 1 2 3 4 b = [5 6 7 8] b =

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

View Full Document
Sheet1 Page 4 5 6 7 8 c = [5 6 7 c = 5 6 7 8 clear c c {??? Undefined function or variable c'. } A = [1 2 3 4 5 6 7 8] A = 1 2 3 4 5 6 7 8 b b = 5 6 7 8 A*b ans = 70 174 help cross CROSS Vector cross product. C = CROSS(A,B) returns the cross product of the vectors A and B. That is, C = A x B. A and B must be 3 element vectors. C = CROSS(A,B) returns the cross product of A and B along the first dimension of length 3.
Sheet1 Page 5 C = CROSS(A,B,DIM), where A and B are N-D arrays, returns the cross

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.

{[ snackBarMessage ]}

### Page1 / 30

lecture3 - 5 7 ans = 12 ans ans = 12 5 8 ans = 13 x = 5 7 x...

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

View Full Document
Ask a homework question - tutors are online