Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Could you help me solve this question please using Matlab, and we have to use sy

ID: 3825683 • Letter: C

Question

Could you help me solve this question please using Matlab, and we have to use symbolic to solve this

2) From elementary physics, we know that the distance a projectile travels horizontally is d, vot cos (0) and the distance traveled vertically is: (6)- gt d, vot sin where vo is the velocity at launch, t is the time, e is the launch angle and g is gravity Use these equations to derive an equation for the distance the projectile has traveled horizontally when it hits the ground (i.e., its range) 3) Using the equation for that you found for range and voJ100 m/s and g 9.8 m/s2, plot the range vs the angle of release 4) Use Matlab to find the maximum range/optimal launch angle.

Explanation / Answer

Here is the code for you:

clc,clf,clear

g=9.81; theta0=45*pi/180; v0=5;

t(1)=0;x=0;y=0;

plot(x,y,'o','MarkerFaceColor','b','MarkerSize',8)

axis([0 3 0 0.8])

M(1)=getframe;

dt=1/128;

for j = 2:1000

t(j)=t(j-1)+dt;

x=v0*cos(theta0)*t(j);

y=v0*sin(theta0)*t(j)-0.5*g*t(j)^2;

plot(x,y,'o','MarkerFaceColor','b','MarkerSize',8)

axis([0 3 0 0.8])

M(j)=getframe;

if y<=0, break, end

end

pause

movie(M,1)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote