33 views (last 30 days)

Projectile Motion (Suggestion: Create a script file for this)

The x and y position (in meters) of a projectile fired at an initial speed of Vo (m/s), at an angle of θ, and at an initial height above the ground of y0 (m) are a function of time (s):

(a) Assume the projectile is fired at 90 m/s and the initial height is 0. On a single graph, plot the y-position of the projectile on the y-axis and time, t, on the x-axis using five different launch angles: 10o, 25o, 45o, 65o, and 85o. Your time, t, should range from 0 to 20 seconds in increments of 0.01 seconds. Remember: In MATLAB use sind not sin when the angle is in degrees.

Using MATLAB commands or plot tools or a combination of both, do the following:

- Label the x-axis as Time (s) and the y-axis as Projectile Height (m).
- Adjust the y-axis so the Projectile Height is non-negative.
- Add a legend to show the various launch angles.

Mahendranadh Chowdary Annamareddy
on 26 Nov 2020

Steven Lord
on 26 Nov 2020

This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.

If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.

If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

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

Start Hunting!
## 1 Comment

## Direct link to this comment

https://in.mathworks.com/matlabcentral/answers/338404-how-can-i-solve-this-problem-please-help#comment_450598

⋮## Direct link to this comment

https://in.mathworks.com/matlabcentral/answers/338404-how-can-i-solve-this-problem-please-help#comment_450598

Sign in to comment.