Question

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 the object in one figure with respect to x.

Hint: follow these steps:

1) For each value of θ find the range.

2) Create x as a vector starting from 0 to the computed range.

3) Compute h using θ and x from steps 1 and 2.

4) Plot h as a function of x.

5) Use hold on for the next plot (Use different colors for the plots and don’t forget to put legends and labels).

b)Create a vector for θ including 100 equally-spaced elements, and determine at which angles the maximum and minimum ranges occurs.

c)What is the max. height of the object at the angle determined in part b.

Homework Answers

Answer #1

%get the initial velocity

v0=input(‘Enter the initial velocity’)

Theta=0:pi/100:pi/2;

g=9.81;

% calculate the range

Range=(v^2/g)*(sin(2*theta));

maxRange=0;

in=0;

% find the maximum range

for i=1:length(Range)

             if Range>max Range

                             maxRange=Range;

                             in=I;

                 end

end

% find the maximu angle

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
Q) a) create a matrix named as X of evenly spaced values from 0 to 50,...
Q) a) create a matrix named as X of evenly spaced values from 0 to 50, with an increment of 10. b) a) create a matrix named as Y of evenly spaced values from 500 to 1000, with an increment of 3. c)a) create a matrix named as Z, the value of the 1st row is from 1 to 10, 2nd row from 2 to 20 with increment of 2, 3rd row 3 to 12. using subplot divide the window...
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...
Homework 3 As you know very well from physics, if you hit a ball forward with...
Homework 3 As you know very well from physics, if you hit a ball forward with a certain angle and a certain speed, it makes an orbital movement. The height of the ball is determined by the equation given below. y(t)=y_0+v_y0 t-1/2 gt^2 Where y0 is the first location of the ball, vy0 is the initial vertical velocity of the ball and g is the gravitational acceleration. After the ball is thrown, the horizontal distance is determined by the following...
A student throws a water balloon with speed v0 from a height h = 1.64 m...
A student throws a water balloon with speed v0 from a height h = 1.64 m at an angle θ = 29° above the horizontal toward a target on the ground. The target is located a horizontal distance d = 8.5 m from the student’s feet. Assume that the balloon moves without air resistance. Use a Cartesian coordinate system with the origin at the balloon's initial position. Part (a) What is the position vector, Rtarget, that originates from the balloon's...
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...
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 ϴ...
An object moves with constant speed in the x-direction, but in the y-direction it is subject...
An object moves with constant speed in the x-direction, but in the y-direction it is subject to an acceleration that increases linearly with time: a(t)=bt, where b is a constant. Assume there is no gravity. Derive an equation analogous to y=xtanθ−(g/2V^2cos^2θ0)x^2 giving the object's trajectory in this situation. Note that θ0θ0 is the angle measured from the horizontal, at which the projectile is launched, and v0v0 is its initial speed. Assume the object starts moving from the origin. Express your...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads data from a file and performs regression analysis using polyfit and polyval. The function shall have the following features: The input arguments shall include the file name (string), a vector of integers for the degrees of polynomial fits to be determined, and an optional plot type specifier (‘m’ for multiple plots, ‘s’ for a single plot - default). The data files will be text...
A student stands at the edge of a cliff and throws a stone horizontally over the...
A student stands at the edge of a cliff and throws a stone horizontally over the edge with a speed of v0 = 17.5 m/s. The cliff is h = 26.0 m above a flat, horizontal beach as shown in the figure. A student stands on the edge of a cliff with his hand a height h above a flat stretch of ground below the clifftop. The +x-axis extends to the right along the ground and the +y-axis extends up...
A cart of mass m1(pictured) is free to move nearly frictionless up a ramp at angle...
A cart of mass m1(pictured) is free to move nearly frictionless up a ramp at angle θ. A small mass m2 hangs from a string that runs over a pulley and connects to m1. We will determine the acceleration of the cart m1 over a known distance x,then plot the acceleration of m1 as a function of the hanging mass m2. a) The hanging mass will create a constant pulling force to accelerate the cart up the ramp. Using Newton’s...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT