: G' X* V* O2 | z9 e* P• How long did it take to do required problems? " P5 a$ ^4 r! l& |% ~9 Z# R- \; W- E2 q• Did anyone do optional problems?) M" L4 W0 P9 M% N. \! s
• Was level of guidance appropriate?( f. n0 ]2 F1 t
• Unanswered Questions? U; z/ }1 \! k4 Y• Some things that came up: 0 D; g6 [4 ?' d4 F7 A4 R* y0 O• Use of semicolon – never required if one command per line. 1 ?6 _4 s3 K. @1 e" T' Z/ n4 F! |# b8 aYou can also put multiple commands on one line; in this case a semicolon is necessary to separate commands:- m3 c" `5 ^+ L7 [' a+ S" w& e
» x=1:10; y=(x-5).^2; plot(x,y);+ s7 |- \$ e! s/ Z# P2 [ |
• Assignment using indices – remember that you can index into matrices to either look up values or to assign value:; I1 i" B2 B7 _2 ^* J3 j6 R* z
» x=rand(50,1); inds=find(x<0.1); y=x(inds); 2 |# S. h1 u) ?# Q; |! gx(inds)=-x(inds); x(inds)=3;' ]) J+ i- B6 e5 b0 [ [4 v k