how can I plot this equation ?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can I plot this :
M = -0.5 Lgo + Lg2 cos(2theta-120)
considering Lgo,Lg2 are constants
0 commentaires
Réponses (1)
sixwwwwww
le 29 Oct 2013
Modifié(e) : sixwwwwww
le 29 Oct 2013
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 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!