how can I plot this equation ?
2 ビュー (過去 30 日間)
古いコメントを表示
how can I plot this :
M = -0.5 Lgo + Lg2 cos(2theta-120)
considering Lgo,Lg2 are constants
0 件のコメント
回答 (1 件)
sixwwwwww
2013 年 10 月 29 日
編集済み: sixwwwwww
2013 年 10 月 29 日
Dear Ahmed, here is the code:
Lgo = 1; % constant value for Lgo
Lg2 = 1; % constant value for Lg2
theta = -pi:0.01:pi; % time series -pi to pi
M = -0.5 * Lgo + Lg2 * cos(2 * theta - 120);
plot(theta, M) % plot of M vs. theta
I hope it helps. Good luck!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!