ramp plotting in axes

Been trying to figure out how to make adjustable axes for adjustable ramps for a Projectile Motion simulation like this
%angle is alpha
alpha = input('input ramp degree: ')
Length=15
Jump_ramp = (Length*sind(alpha));
Land_Ramp = (pi* Jump_ramp);
plot([Jump_ramp,0],[Land_Ramp,0])
clearly the above is not working. Ive tried to use xlim but not show how or if that would even be correct to use

2 件のコメント

Jan
Jan 2018 年 10 月 17 日
What exactly is the problem?
Stephen23
Stephen23 2018 年 10 月 17 日

回答 (0 件)

この質問は閉じられています。

質問済み:

2018 年 10 月 17 日

閉鎖済み:

2018 年 10 月 17 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by