Inserting and equation and plotting it
Afficher commentaires plus anciens
i'm trying to insert an equation and plot it, but i couldn't because i keep getting errors like : matrix dimensions must agree, or inner matrix dimensions must agree.
this is the equation. M has a value of 1 to 5 with an increment of 0.5. Q has a value of 0 to 1 with an increment of 0.1.
the plot is something like this.
thank you in advance, i would appreciate your help
Réponses (2)
bym
le 25 Nov 2012
use the dot notation to specify element-by-element multiplication/division/exponentiation as in:
d= q./(2*m)-acos(sqrt(1-(q./m).^2))
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!