Have I done these figures correctly? If yes, how can I save them as a Jpg or png file?

1 次查看(过去 30 天)
Could anyone tell me if I have done the three figures listed here correctly? If they are correct, how can I save them as a jpg or a png file? I have attached an *.m file for each one of the figures. Thank you very much in advance.
Figure 1 (Vary firing angle): Plot 5 second trajectories for an object with initial velocity 10 m/s. Generate a single figure that shows the trajectories for all of the following angles: 0, pi/8, pi/4, 3pi/8, pi/2, 5pi/8, 3pi/4, 7pi/8, pi
Figure 2 (Vary initial velocity): Plot 5 second trajectories for an object with firing angle pi/4. Generate a single figure that shows the trajectories for the following initial velocities: 0, 1, 2, 3, 4, …, 18, 19, 20 m/s.
Figure 3 (Vary gravity): Plot 5 second trajectories for an object with firing angle pi/4 and initial velocity 10 m/s. Generate a single figure that shows the trajectories for all of the following gravity: -20, -15, -10, -5, 0, 5, 10, 15, 20 m/s2

回答(1 个)

James Bell
James Bell 2015-2-22
Seem fine to me when I run them. Why not just run them yourself?

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by