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)
Solving above problem by using online MAT Compiler
Output what I got there:
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
A projectile is shot at an angle of 50 degrees with respect to the horizontal at...
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 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 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 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...
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 speed of 30.0 m/s. How long does it take the projectile to reach the highest point in its trajectory?
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?
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?
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 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...