Use newline, comma or semicolon before this statement
Afficher commentaires plus anciens
I have written a function but keep getting a 'red' error message telling me to 'use a newline, comma or semicolon before this statement'...'this statement' being the addition sign in the first equation. I have tried various alterations but cant seem to get it to work or if I have written it all wrong??
function E = m + (180/pi20)* e * sind(m)* (1 + e *cos(m));
keeplooping = true;
while E > 0.005
E1 = (E - (180/pi20)* ec *sind(E)-m)/(1-ec *cosd(E));
E1 = E;
keeplooping;
if E <= 0.005
keeplooping = false
return
end
end
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur File Operations 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!