I do not know the meaning of this code
Afficher commentaires plus anciens
numsteps=20;
xdisp=10;
ydisp=15;
Tx=[0:xdisp/numsteps:xdisp , zeros(1,numsteps+1)+xdisp];
Ty=[zeros(1,numsteps+1), 0:ydisp/numsteps:ydisp ];
Tz=[zeros(1,numsteps+1), zeros(1,numsteps+1) ];
theta10=0;
theta20=pi/6;
theta30=-pi/3;
theta40=0;
theta4s=theta30;
maxtheta1=pi/6;
I do not know the meaning of this part
Tx=[0:xdisp/numsteps:xdisp , zeros(1,numsteps+1)+xdisp];
Ty=[zeros(1,numsteps+1), 0:ydisp/numsteps:ydisp ];
Tz=[zeros(1,numsteps+1), zeros(1,numsteps+1) ];
plz explan to me..
Réponses (1)
Oleg Komarov
le 7 Mai 2011
0 votes
Execute the parts of the expression you don't understand to see what happens (highlight the part of code you want to check and press F9).
Also:
- doc colon
- doc zeros
Catégories
En savoir plus sur Aerospace Blockset dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!