Getting errors with code.
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
per isakson
2015년 2월 24일
편집: per isakson
2015년 2월 24일
The first problem is that t is not defined before line 7, which is
[xt,yt] = trajectory(v0,theta,t,g);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!