Getting errors with code.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Could someone help me figure out why I'm getting errors with the function I have attached. It is a trajectory function that takes the initial velocity and the angle as inputs, and the output should be an animation plot of the trajectory (kind of like angry birds.) I'm having trouble with the animation. Thank you very much.
0 Kommentare
Antworten (1)
per isakson
am 24 Feb. 2015
Bearbeitet: per isakson
am 24 Feb. 2015
The first problem is that t is not defined before line 7, which is
[xt,yt] = trajectory(v0,theta,t,g);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Animation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!