MATLAB_Projectile_Motion Description and Help

MATLAB_Projectile_Motion is a graphical user interface (GUI) that plots solutions to two different projectile motion models, one with linear air resistance and the other with quadratic air resistance. The GUI assumes the (x,y,z) coordinate of a projectile satisfies

(       ′′         ′
||   mx   (t) + rxx (t) = Fx(t)
|||   my  ′′(t) + r y ′(t) = F (t)
|||{       ′′     y  ′       y
    mz   (t) + rzz (t) = Fz (t)
|   x (0 ) = x ;x ′(0) = x
||||            0  ′       1
|||   y(0) = y0;y  (0) = y1
(   z(0) = z0;z ′(0) = z1

in the linear air resistance case where m represents the mass of the projectile and rx,ry,rz the linear resistance proportionality constants (see textbook for complete details). Initial positions and velocities are given by x0,y0,z0 and x1,y1,z1 respectively. In the quadratic resistance case, it is assumed the coordinates of the projectile satisfy

(
|   mx  ′′(t) + rx∥u ′(t)∥x ′(t) = Fx(t)
|||       ′′          ′     ′
||||   my   (t) + ry∥u  (t)∥y  (t) = Fy (t)
{   mz  ′′(t) + rz∥u ′(t)∥z ′(t) = Fz (t)
                 ′
||||   x (0) = x0;x (0) = x1
|||   y (0 ) = y0;y ′(0) = y1
|(               ′
    z (0 ) = z0;z (0) = z1

where

   ′      ∘  ------------------------
∥u  (t)∥ =    x ′(t)2 + y ′(t)2 + z ′(t)2
Although in notation the quadratic proportionality constants use the same names as the linear case, it is not assumed they are equal in the GUI. In both models, forcing functions that depend on time may be inputted using MATLAB notation. For example a periodic wind in the x-direction can be inputted as cos(t), or suppose the mass of the projectile is .15 kg then the force due to gravity can be inputted as -.15*9.8. To use the GUI, click on the ‘Input Parameters and Solve’ Button.

PIC

Figure 1: MATLAB_Projectile_Motion GUI


Pop-up boxes will appear guiding you through the input process.


PIC

Figure 2: Pop-up boxes for parameters


Once all the inputs have been made a movie will display the path of the projectile for each model.


PIC

Figure 3: Projectile Paths


Choose ‘Plot in an external window’ if you would like to rotate the image. To do this, click on the ’Rotate 3D’ icon which is to the right of the hand.


PIC

Figure 4: Rotate image using ’Rotate 3D’ option