필터 지우기
필터 지우기

how can I plot this equation ?

조회 수: 4 (최근 30일)
Ahmed
Ahmed 2013년 10월 29일
편집: sixwwwwww 2013년 10월 29일
how can I plot this :
M = -0.5 Lgo + Lg2 cos(2theta-120)
considering Lgo,Lg2 are constants

답변 (1개)

sixwwwwww
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!

카테고리

Help CenterFile Exchange에서 2-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