MATLAB Projectile motion in matlab help

  • Thread starter caseyk
  • Start date
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!!!

Want to reply to this thread?

"Projectile motion in matlab help" You must log in or register to reply here.

Related Threads for: Projectile motion in matlab help

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving