Question

Using Matlab: The range of an object shot at an angle with respect to the x-axis...

Using Matlab:

The range of an object shot at an angle with respect to the x-axis and an initial velocity vo is given by Range = (Vo)2* sin(2*θ)/g
for   0<= θ <= π and neglecting air resistance. Use g = 9.81 m/s2 and an initial velocity Vo of 100 meters per second.
Use evenly spacing angle of π/40.

a) find the maximum range in meters

b) find the angle at which the maximum range occurs in radians

*Your answer must be based on the increment specified in this problem π/40.

Explain the process and how you obtained the results.

Homework Answers

Answer #1

% Matlab script to determine the maximum range (in meters) and the angle at
% which the maximum range occurs(in radians)

% define the variables
g = 9.81; % m/s^2
Vo = 100; % m/s
max_angle = 0; % radians % initialize max_angle to first value i.e 0
max_range = (Vo^2)*sin(2*max_angle)/g; % meters % calculate and set max_range to range at max_angle

% loop from 0 to pi in steps of pi/40
for i=0:pi/40:pi
% compute range at angle = i
range = (Vo^2)*sin(2*i)/g;
% if range > max_range, update max_range and max_angle
if(range > max_range)
max_range = range;
max_angle = i;
end
end

% display the maximum range value and the angle at which it occurs
fprintf('Maximum range: %f meters at angle: %f radians\n',max_range, max_angle);

%end of script

Output:

Know the answer?
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
Similar Questions
Using MATLAB The range of an object shot at an angle θ (with respect to x-axis),...
Using MATLAB The range of an object shot at an angle θ (with respect to x-axis), with the initial velocity of V0 (in the absence of air resistance), is calculated by the following formula: range=(Vo^2/g)(sin(2theta)) where (0<=theta<=pi/2) And the trajectory of object is given by:     h=tan(theta).x-(g/2Vo^2*cos^2(theta)).x^2 .Where h is the height of the object at each x location and g = 9.81 m/s2. a) Using π/8 increment size for the angle and V0 = 10 m/s, plot the trajectories of...
Using the average vertical range and the height, calculate the initial velocity (muzzle velocity) using equations...
Using the average vertical range and the height, calculate the initial velocity (muzzle velocity) using equations 5,6,7, & 8. x-coordinate axis 5y.) xf = (1/2)·ax·(Δt) 2 + vix·Δt + xi r = (1/2)·(0 m/s2 )·(Δt) 2 + vix·Δt + (0 m) 5x.) r = vix·Δt y-coordinate axis 6y.) yf = (1/2)·ay·(Δt) 2 + viy·Δt + yi 2y.) (0 m) = (1/2)·(-g)·(Δt) 2 + viy·Δt + (h) where g = 9.8 m/s2 where vix and viy are the components of the...
1a. Find the domain and range of the function. (Enter your answer using interval notation.) f(x)...
1a. Find the domain and range of the function. (Enter your answer using interval notation.) f(x) = −|x + 8|   domain= range= 1b.   Consider the following function. Find the composite functions f ∘ g and g ∘ f. Find the domain of each composite function. (Enter your domains using interval notation.) f(x) = x − 3 g(x) = x2 (f ∘ g)(x)= domain = (g ∘ f)(x) = domain are the two functions equal? y n 1c. Convert the radian...
Projectile in 2D: A ball is thrown with initial speed V , at an angle θ...
Projectile in 2D: A ball is thrown with initial speed V , at an angle θ above the horizontal, over flat ground. Show that the motion is restricted to a single plane. Neglecting air resistance, find (a) the time taken for the ball to reach the ground; (b) the maximum height reached by the ball; (c) the horizontal distance travelled by the ball before hitting the ground (range); (d) the kinetic and potential energies at the position of maximum height...
A projectile motion (i.e. cannon) can be modeled via the following equations: x=u cos⁡θ t y=-0.5...
A projectile motion (i.e. cannon) can be modeled via the following equations: x=u cos⁡θ t y=-0.5 g t^2+u sin⁡θ t Where: x: Position of the cannonball after t seconds in the x-direction (meters) y: Position of the cannonball after t seconds in the y-direction (meters) u: Initial velocity of the cannonball (meters per second) g: Acceleration due to gravity (meters per second squared) t: Time (seconds) In this question, we are trying to see the effects of the angle ϴ...
PROBLEM A long jumper (see figure) leaves the ground at an angle of 20.0°to the horizontal...
PROBLEM A long jumper (see figure) leaves the ground at an angle of 20.0°to the horizontal and at a speed of 11.0 m/s. (a) How long does it take for him to reach maximum height? (b) What is the maximum height? (c) How far does he jump? (Assume his motion is equivalent to that of a particle, disregarding the motion of his arms and legs.) (d) Use the proper equation to find the maximum height he reaches. STRATEGY Again, we...
ch 6 1: It is generally a good idea to gain an understanding of the "size"...
ch 6 1: It is generally a good idea to gain an understanding of the "size" of units. Consider the objects and calculate the kinetic energy of each one. A ladybug weighing 37.3 mg flies by your head at 3.83 km/h . ×10 J A 7.15 kg bowling ball slides (not rolls) down an alley at 17.5 km/h . J A car weighing 1260 kg moves at a speed of 49.5 km/h. 5: The graph shows the ?-directed force ??...