Trajectories corresponding to different velocities


Assignment:

Program 1 Using the mfile window the height and distance traveled by a ball thrown at an angle A and with a speed v is: [h(t) =vtsin(A)-0.5gt^2] , [x(t)=vtcos(A)].

Answer the following using v=10m/s and a time step of 0.001 and g=9.81m/s^2.

a) Use a loop, (now this book references using a for loop for one part and a while loop in the other part of this problem and do not know why), to calculate and plot the height versus ime for the angle A=35 degrees. Also, use the max function to find the maximm height reached and the time it takes to reach that height(the corresponding time instant).
b) Polt on the same graph the trajectories (ie plot h versus x) corresponding to three different angles A=20 degrees, 45degrees,and 70 degrees.
c) Using the angle A=30 degrees, plot the trajectories corresponding to three different velocities v=10,20,30m/s, on thre different graphs arranged vertically on the same page using subplot.

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Trajectories corresponding to different velocities
Reference No:- TGS01897750

Now Priced at $30 (50% Discount)

Recommended (98%)

Rated (4.3/5)