Plot entire travelling paths of two projectiles, i.e., two angry birds, on x-y plane, assuming they were thrown at the origin. The first angry bird was thrown with the initial velocity, vo,1 = 2 m/s, and the angle of the initial velocity from the horizontal plane, (theta),1 = (pi)/4, while the other was thrown with vo,2 = 10 m/s and (theta),2 = (pi)/6. Make sure that you plot two paths in the same plot with different line types, colors, and symbols (as long as two curves can be recognized clearly by the line types, colors, and symbols, it should be ok). Add the plot title as “Angry_Bird_Paths_[YOUR COLLEGE ID]” to the top of your figure, and proper x and y labels. You may want to review an article to solve the problem (https://en.wikipedia.org/wiki/Projectile_motion).
Answer the following two questions based on your plot.
Which one does fly further?
Which one does fly higher?
On Matlab/Octave
MATLAB CODE
%Initializing variables
theta1=pi/4;
theta2=pi/6;
v01=2;
v02=10;
x=0:.001:9;
%Solving equation
y1=subplus(tan(theta1).*x-(9.81.*x.*x)/(2.*(v01.^2).*(cos(theta1)).^2));
y2=subplus(tan(theta2).*x-(9.81.*x.*x)/(2.*(v02.^2).*(cos(theta2)).^2));
plot(x,y1,'-r');
hold on;
plot(x,y2,'--b');
xlabel("Horizondal displacement (x)");
ylabel("Vertical displacement (y)");
title("Angry Bird Paths [YOUR COLLEGE ID]");
legend("Bird 1", "Bird 2");
SOLUTION:
Bird 1 flied further and higher because of larger initial velocity.
Get Answers For Free
Most questions answered within 1 hours.