Why can I not evaluate this while loop?

 Risposta accettata

James Tursa
James Tursa il 11 Set 2015
Modificato: James Tursa il 11 Set 2015
Did you mean to use cosd instead of cos? From your w values it looks like maybe w is in degrees. Also, I don't see x or y initialized. E.g., maybe start with x = exp(1.2) and y = 0 prior to the loop start?

1 Commento

I totally forgot that how MATLAB handles radians and degrees. Thank you for the reminder.

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by