Question

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 for loop)

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

Solving above problem by using online MAT Compiler

codinggrouind Execute MATLABIOctave Online (GNU Octave, v4.2.1) rag the cursor around the area you ant to ca Execute l > Shar

Output what I got there:

0.8 0.8 0.4 ILA 0.8 0.8 0.4 0.2 Distance (in m)

0.8 0.8 0.4 ILA 0.2 0.8 0.4 0.8 0.2 Distance (in m)

0.8 0.8 0.4 0.2- 0.8 0.8 0.2 0.4 Distance (in m)

0.5- -0.5 -0.5 Distance (in m)

20 15 10 101 12 14 Distance (in m)

30 25 20 15 10 20 25 30 15 10 Distance (in m)

50 40 30 20 10_ 10 15 20 25 30 35 40 Distance (in m)

80 50 40 30 20 10 10 20 30 40 50 60 Distance (in m)

80 70 60 50 40 20 10 10 20 30 40 50 60 70 Distance (in m)

80 60 20 10 20 30 40 70 80 Distance (in m)

80 60- 40 20 20 40 80 100 Distance (in m)

120 - 100 80 80 40_ 20 20 40 60 80 100 Distance (in m)

140 - 120 00_ 80 60 40 20 20 40 60 80 100 Distance (in m)

140 120 100 E 80 40 20 20 40 80 80 120 140 Distance (in m)

200 - 150 100 - 50_ 50 100 200 Distance (in m)

200 - 150 100_ 50_ 50 제11 Distance (in m)

200 - 150 100_ 50_ 50 제11 Distance (in m)

200 - 150 100 . 50_ 50 제11 Distance (in m)

200 150 100_ 50 50 제1: Distance (in m)

250 200 150_ 100 50_ 50 100 150 200 250 Distance (in m)

250 200 150 100 50- 50 150 250 Distance (in m)

250 200 150_ 50_ 50 100 150 200 Distance (in m)

250 200 150_ 50_ 1INI 150 200 50 Distance (in m)

250 200 150_ 50_ 50 100 150 200 Distance (in m)

300 - 250 200 150 - 100- 50 50 100 150 冰! 250 300 Distance (in m)

300- 250 200 150 - 100- 50 50 100 150 제11 250 350 Distance (in m)

300- 250 200 150 100- 50 50 150 200 250 350 Distance (in m)

media%2F32c%2F32c82f8d-ba12-46e9-ac82-61

media%2F1a5%2F1a5540e7-b6fb-4e19-87c3-94

Code Used:

clear all
close all
clc

init_velocity=200;
init_angle=50;

angle=(init_angle);
u=init_velocity;
g=32.2; % accelaeration due to gravity

T_hit=(2*u*sind(angle))/g; % calculate time to hit
tstep=ceil(T_hit)/100; % calculate t step

tval=[0:tstep:T_hit]; % time steps

figure
xlabel('Distance (in m)');
ylabel('Height (in m)');
hold on


for k=1:length(tval)
distance(k,:)=u*cosd(angle)*tval(k); % caluclate horizontal components
height(k,:)=(u*sind(angle)*tval(k))-0.5*g*tval(k)^2; % calculate vectical component
plot(distance,height,'bo','MarkerSize',7); % plot the psotiotion of ball and the har
pause(0.005)
end
hold off

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

    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. 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...

  • 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...

  • 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).

  • 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 fired at an angle of 60 degrees above the horizontal with an initial...

    A projectile is fired at an angle of 60 degrees above the horizontal with an initial speed of 30.0 m/s. How long does it take the projectile to reach the highest point in its trajectory?

  • 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 shot at 53 degrees above the horizontal with a speed of 100 m/s,...

    A projectile is shot at 53 degrees above the horizontal with a speed of 100 m/s, how far away must a wall be if the projectile is to hit 75 m above the level at which the projectile was shot?

  • EXPLORE A projectile is launched with a launch angle of 30° with respect to the horizontal...

    EXPLORE A projectile is launched with a launch angle of 30° with respect to the horizontal direction and with an initial speed of 10 m/s. s0 (A) How do the vertical and horizontal components of the projectile's velocity vary with time? 40 35 (B) How long does it remain in flight? 25 (C) For a given launch speed, what launch angle produces the longest time of flight? 15 10 toy CONCEPTUALIZE Consider the projectile to be a point mass that...

  • 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...

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