Three-D projectile trajectory A projectile is fired with an initial velocity-
3-D projectile trajectory A projectile is fired with an initial velocity of 250 m/s at an angle of θ = 65 relative to the ground. The projectile is aimed directly north. Because of a strong wind blowing to the west, the projectile also moves in this direction at a constant speed of 30 m/sv0=250; g=9.81; theta=65; x0=3000; vx=-30; v0z=v0*sin(theta*pi/180); v0y=v0*cos(theta*pi/180); t=2*v0z/g; tplot=linspace(0,t,100); z=v0z*tplot-0.5*g*tplot.^2; y=v0y*tplot; x=x0+vx*tplot; xnowind(1:length(y))=x0; plot3(x,y,z,'k-',xnowind,y,z,'k--') grid on axis([0 6000 0 6000 0 2500]) xlabel('x (m)'); ylabel('y (m)'); zlabel('z (m)')
0 Comments