Question

MATLAB Program Problem A projectile is shot at an angle of 50 degrees with respect to the horizontal at a velocity of 200 m/s. Earths gravity is 9.81 m/s 2. Take the variable x as the range and y as the altitude. Create a MATLAB plot, which plots that trajectory. Now, assume the terrain slopes up by 1 m in y for every 10 m in x. On the same axis, plot the line of the terrain in a different color.

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

MATLAB Code

syms t;

x = t * 200 * cosd(50);

y = t * 200 * sind(50) - 0.5 * 9.81 * t^2;

ezplot(x, y);

hold on;

x1 = 200 * cosd(50) * t;

y1 = 200 * cosd(50) * t / 10;

ezplot(x1, y1, '--');

hold off;

Add a comment
Know the answer?
Add Answer to:
MATLAB Program Problem A projectile is shot at an angle of 50 degrees with respect to...
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
  • A projectile is shot at an angle of 50 degrees with respect to the horizontal at...

    A projectile is shot at an angle of 50 degrees with respect to the horizontal at a velocity of 200 m/s. Earth's gravity is 9.81 m/s^2. Take the variable x as the range and y as the altitude. Create a MATLAB plot, which plots that trajectory. Now, assume the terrain slopes up by 1 m in y for every 10 m in x. On the same axis, plot the line of the terrain in a different color. (without using a...

  • Please solve using Matlab ONLY Computational Modeling The range of an object shot at an angle...

    Please solve using Matlab ONLY Computational Modeling The range of an object shot at an angle theta with respect to the x-axis and an initial velocity v0 is given by the trajectory shown below. The Range can be obtained by the following equation, The above equation neglects air resistance and uses standard gravity of g = 9.81 m/s2. Write a matlab code in order to calculate the Range for velocity range 0≤ vo ≤100 m/s and shooting angle range 0...

  • Please help with this exercise in Matlab 4 The range of an object shot at an...

    Please help with this exercise in Matlab 4 The range of an object shot at an angle θ (with respect toxaos), with the initial velocity of Va (in the absence of air resistance), is calculated by the following formula: va , sin(20) Range (0 052) And the trajectory of object is given by where h is the height of the object at each x location and g 9.81 m/s. Using n/8 increment size for the angle and Vo-10 m/s, plot...

  • 1. A projectile is shot from the ground at speed v0=10 m/s making an angle q=50...

    1. A projectile is shot from the ground at speed v0=10 m/s making an angle q=50 degrees with the positive direction of the x-axis (horizontal). Find the time at which the velocity vector makes an angle of 30 degrees with the positive direction of the x-axis (horizontal).

  • Create a program that plots the trajectory, from the initial height to the ground, of a...

    Create a program that plots the trajectory, from the initial height to the ground, of a projectile accelerating both in the horizontal and vertical directions. -Matlab Code PROBLEM 4: In your physics class, projectile motion has two components: constant-velocity motion in the horizontal direction and free-fall motion in the vertical direction. However, in reality, the horizontal motion has acceleration due to air resistance, wind, and other factors. The goal of this problem is to visualize the trajectory of a projectile...

  • please solve it using MATLAB The range of an object shot at an angle theta with...

    please solve it using MATLAB The range of an object shot at an angle theta with respect to the x-axis and an initial velocity v_0 (Figure P3.16) is given by Range = v^2_0/g sin (2 theta) for 0 lessthanorequalto theta lessthanorequalto pi/2 and neglecting air resistance. Use g = 9.81 m/s^2 and an initial velocity v_0 of 100 m/s. Show that the maximum range is obtained at approximately theta = pi/4 by computing the range in increments of pi/100 between...

  • A projectile is launched at 50 m/s at an angle of 30 degrees from the roof...

    A projectile is launched at 50 m/s at an angle of 30 degrees from the roof of a 20m tall building. At the peak of its trajectory, what is its speed? How high off the ground is the peak? What will the range of this projectile be?

  • A projectile is launched at an angle of 60° from the horizontal and lands 98 s...

    A projectile is launched at an angle of 60° from the horizontal and lands 98 s later at the same height from which it was launched (a) What is the initial speed of the projectile (in m/s)? m/s (b) What is the maximum altitude (in m)? (c) What is the range (in m)? (d) Calculate the displacement (in m) from the point of launch to the position on its trajectory at 90 s. (Express your answer in vector form. Assume...

  • 4. Suppose a ball is thrown at an angle alpha of 60 degrees with respect to the horizontal at an ...

    Please use excel and VBA and show hand calculations 4. Suppose a ball is thrown at an angle alpha of 60 degrees with respect to the horizontal at an initial velocity of 10 m/sec. The x and y distance travelled is determined with the following equations: a. x vocos(alpha)*t b. y vo* sin(alpha)*t gt/2, where g is the acceleration of gravity. (9.81 m/s2) At what point does the ball reach halfway and the slope is zero? Ball thrown at 60...

  • A projectile is launched with an initial speed of 48.0 m/s at an angle of 31.0°...

    A projectile is launched with an initial speed of 48.0 m/s at an angle of 31.0° above the horizontal. The projectile lands on a hillside 3.70 s later. Neglect air friction. (Assume that the +x-axis is to the right and the +y-axis is up along the page.) (a) What is the projectile's velocity at the highest point of its trajectory? magnitude _____ m/s direction _______ degrees (counterclockwise from the +x axis) (b) What is the straight-line distance from where the...

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