MATLAB HW1

MATLAB HW1 - TA: Nicholas Nguyen Section B05 1 1 . >...

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

View Full Document Right Arrow Icon
TA: Nicholas Nguyen  Section B05 1.1  >> w=23; e=5; i = 9; d = 4; a = 1; >> weidai = w+e+i+d=a+i ??? weidai = w+e+i+d=a+i                     | Error: The expression to the left of the equals sign is not a valid target for an assignment.   >> weidai = w+e+i+d+a+i weidai =     51 1.2 >> z = 25- (100-7exp(5+cos(pi/3)) ??? z = 25- (100-7exp(5+cos(pi/3))                  | Error: Unexpected MATLAB operator.   >> z = 25- (100-7(exp(5+cos(pi/3))) ??? z = 25- (100-7(exp(5+cos(pi/3)))                   | Error: Unbalanced or unexpected parenthesis or bracket.   >> z = 25- (100-7*exp(5+cos(pi/3))) z =   1.6378e+003 1.3 >> Fibonacci = [ 1 1 2 3; 5 8 13 21; 34 55 89 144; 233 377 610 987] Fibonacci =      1     1     2     3      5     8    13    21     34    55    89   144    233   377   610   987 1.4 >> A= Fibonacci (3:4, 3:4) A =
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

MATLAB HW1 - TA: Nicholas Nguyen Section B05 1 1 . >...

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

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