Question

Could somebody help me with this question for the coding on MATLAB? Thank you

Projectile Motion The distance a projectile travels when fired at an angle Θ is a function of time and can be divided into horizontal distance, dVotcos(O) and the vertical distance is dy Vot sin(0)-0.5gt2. Suppose a projectile is fired at an initial velocity of 100 m/s and a launch angle of /4 radians (45°). Use ezplot to graph horizontal distance on the x -axis and vertical distance on the y -axis for times from 0 to 20 seconds. V(t) 1 h(t)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

v0=100;
theta=pi/4;
g=9.81;

syms t
dx=v0*t*cos(theta);
dy=v0*t*sin(theta)-0.5*g*t*t;

ezplot(dx,dy,[0,20])

MATLAB R2017a Search Documentation Log In Compare Go To▼ Comment ge-ese Breakpoints Run Run and ES Advance ▼ New Open Save Figure 1 Indent E Print Find ▼ Advance File Edit View Insert Tools Desktop Window Help Current Folder Editor-GAMATLAB\R2017a\bin\UntitledT9.m x-50 21/2 t y = 50 2112 t-(981 t2)/200 400 田山html ㄧ田ぷm3iregistry -v0-100 2-theta-pi/4; 3-g-9.81: profile-results registry 200 田山util 田山win64 5-yms t 6- dx=vo*t* cos(theta); 7-dy-vo*t*sin (theta)-0.5*g*t*t: mbuild.bat 9ezplot (dx, dy, [o,20]) mex.bat mexext.bat 200 worker.bat lena.bmp 400 Details Works Name- 600 Command Window 200 600 1000 1200 00 3.1416 1x1 sym x1 sym 9.8100 1x1 sym 0.7854 100 400 800 >> pi dy 3.1416 Activate Windows Go to PC settings to activate Windows Untitled79 Ln 9 Col 19

Add a comment
Know the answer?
Add Answer to:
Could somebody help me with this question for the coding on MATLAB? Thank you Projectile Motion...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT