
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























Motion of a Projectile
0
Motion of a Projectile (cont.)
Commands
...| MATLAB commands ...| if conditional expression ...| ...| MATLAB commands ...| end ...| ...| MATLAB commands ...| m-files: Ex 5 _ 2
Commands Group 1
...| MATLAB commands ...| if conditional expression ...| ...| Group 1 commands ...| else ...| ...| Group 2 commands ...| end ...| ...| MATLAB commands ...| Commands Group 2
if Commands Group 1 True False ...| ...| MATLAB commands ...| if conditional expression ...| ...| Group 1 commands ...| elseif conditional expression ...| ...| Group 2 commands ...| else ...| ...| Group 3 commands ...| end ...| ...| MATLAB commands ...| Commands Group 2 elseif Commands Group 3 False True In general: elseif can appear 0 or more times and else at most once) Nesting is possible: conditional statements are commands themselves!
**' 8 *x^ 2 + 5 *cos(x)' ' 8 t^ 2 + 5 cos(t)'
2
2 3
m-files: lect 6 _ 4