Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
What is wrong with this code?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am new to Matlab, which is probably very apparent from the above picture. I am trying to display that the left side of the equation on line 4 is equal to the function on the right after the n and x have been defined by the user. Any help would be much appreciated. Thanks!
0 commentaires
Réponses (2)
madhan ravi
le 18 Fév 2019
Modifié(e) : madhan ravi
le 18 Fév 2019
Remove the single quotes from the last line, upload the code instead of a picture.
a/rw^2 == (cos(x)+(n^2*cos(2*x)+sin(x)^4))/((n^2-sin(x)^2)^(3/2))
% ^-^---------^-^------^-^^^------------^-^-- see the changes
Note: You should define rw as a number like x and n.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!