MATLAB Answers

how can i solve this problem? please help

195 views (last 30 days)
Commented: Steven Lord on 26 Nov 2020
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.

Answers (1)

Mahendranadh Chowdary Annamareddy
The range of the projectile is the distance from the origin to the point of impact on horizontal ground. It is given by . To estimate the range, your trajectory plots should be altered to have the horizontal distance on the x-axis and the altitude on the y-axis. This representation will clearly show the path of the projectile launched with a certain initial angle. This means you will have to plot y vs. x. Observing the formula for the projectile’s range, we see that to increase the range we will have to adjust the launching angle. Use the following adjusted angles to create two more trajectory plots (y vs. x), one for each angle, and determine which launching angle results in a greater range: radians and radians. The time vectors for these angles should be defined as t = 0:0.1:9 and t = 0:0.1:8 respectively.

  1 Comment

Steven Lord
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 ( 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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!