Why can I not evaluate this while loop?

 Réponse acceptée

James Tursa
James Tursa le 11 Sep 2015
Modifié(e) : James Tursa le 11 Sep 2015

0 votes

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 commentaire

Tuntoon
Tuntoon le 11 Sep 2015
I totally forgot that how MATLAB handles radians and degrees. Thank you for the reminder.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by