TA的每日心情 | 开心 2019-11-20 15:05 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
MIT6_094IAP10_lec026 K1 E/ u. g& x" S, {2 w* e
0 Y2 M" [5 E7 s& E$ }1 V) Q
• How long did it take to do required problems?( N( C0 V0 |- J
• Did anyone do optional problems?8 I( q# }9 X; ^- Q. R
• Was level of guidance appropriate?
3 [3 x4 P7 F+ @0 t* S( z9 _. M• Unanswered Questions?: i8 G3 S6 U: w- }0 g
• Some things that came up:" E' M" P8 |0 W, v: c
• Use of semicolon – never required if one command per line. , C" B4 Z* U* d A* b! _# f( i
You can also put multiple commands on one line; in this case a semicolon is necessary to separate commands:
9 v. i9 X' i( _/ j5 R/ ~. h) u# R» x=1:10; y=(x-5).^2; plot(x,y);
% M, ? H6 ^7 \; c E• Assignment using indices – remember that you can index into matrices to either look up values or to assign value:. l% X( X0 e2 ~# r- ^1 H% r. `5 p
» x=rand(50,1); inds=find(x<0.1); y=x(inds);
2 }5 \2 _( D& g: U* X' hx(inds)=-x(inds); x(inds)=3;5 s) [( E7 @3 S! W* M& \, y _
1 W+ {: \' R, w% Z2 h" E& z9 t% [) M. I4 C
# z! B& i3 i1 N+ H |
|