plot function in matlab?

2 ビュー (過去 30 日間)
Najmeh Eskandari
Najmeh Eskandari 2018 年 8 月 5 日
コメント済み: Jan 2018 年 8 月 5 日
I want to plot qi=q0+3*(qf-q0)*t^2-2*(qf-q0)*t^3 as defined in the picture.i use plot or ez plot but the figure that is drawn is not correct.
q0=10(degree)
qf=-20(degree)
t=0 to 1 second
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 8 月 5 日
編集済み: KALYAN ACHARJYA 2018 年 8 月 5 日
Check the answer, I have edited. Pls confirm?
Jan
Jan 2018 年 8 月 5 日
@Najmeh Eskandari: Please post your code and the output. Then explain what "not correct" means, such that we can give you an advice how to improve your code.

サインインしてコメントする。

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 8 月 5 日
編集済み: KALYAN ACHARJYA 2018 年 8 月 5 日
q_o=10;
qf=-20;
t=0:.1:1;
qi=q_o+3*(qf-q_o)*t.^2-2*(qf-q_o)*t.^3;
plot(t,qi);
title('Cubic Polynomial Trajectory');
xlabel('Time(sec)'); ylabel('Angle(deg)');
  1 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 8 月 5 日
Confirm?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by