Why can I not evaluate this while loop?

 Akzeptierte Antwort

James Tursa
James Tursa am 11 Sep. 2015
Bearbeitet: James Tursa am 11 Sep. 2015

0 Stimmen

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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 11 Sep. 2015

Kommentiert:

am 11 Sep. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by