![]() ![]() ![]() There may be more than one if % we had a point on either side of the maximum. % annotate the plot by adding a label to the line at the peak of the % trajectory indicating the angle that this line corresponds to. x = vox * t % x-position at each point in time. for i = 1 : length ( angle ) vox = vo * cos ( angle ( i ) ) % initial x-velocity for this angle voy = vo * sin ( angle ( i ) ) % initial y-velocity for this angle tf = - 2 * voy / a % time of flight for this angle t = linspace ( 0, tf ) % a vector of time points for our plot. ![]() % loop over each angle and create the plot for its trajectory. Clear clc close all vo = 100 % initial velocity, m/s a = - 9.8 % acceleration, m/s^2 angle = 5 : 10 : 85 % angles in degrees angle = angle * pi / 180 % convert to radians figure hold on % create a figure and hold it for multiple lines. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |