Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Projectile motion in matlab help

  1. Sep 21, 2009 #1
    Hey guys, I'm pretty new to matlab and I've been messing around this for a couple hours now and I could use some help.

    I need to "Write a MATLAB program that calls at least one user defined function to calculate the ball movement and plot the result in 0.01 second increment before the ball drops to the floor. Use GUI to take the following user input: the height of the launcher (in), initial launch speed (ft/sec), and launch angle from horizon (degree). "

    There are a bunch of given equations I can use
    "vx = vx0 + ax t x = x0 + vx0t + ½ ax t2 vx2 = vx02 + 2 ax (x – x0)
    vy = vy0 + ay t y = y0 + vy0t + ½ ay t2 vy2 = vy02 + 2 ay (y – y0)
    For projectile motion, ax = 0, ay = -g, gravity g = 32.2 ft/sec2"

    What I need help with is creating the m file that can calculate the motion if the givens are entered into a gui. thanks!!!
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Projectile motion in matlab help
  1. Matlab help (Replies: 6)

Loading...