Why can I not evaluate this while loop?

 Respuesta aceptada

James Tursa
James Tursa el 11 de Sept. de 2015
Editada: James Tursa el 11 de Sept. de 2015

0 votos

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 comentario

Tuntoon
Tuntoon el 11 de Sept. de 2015
I totally forgot that how MATLAB handles radians and degrees. Thank you for the reminder.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Sept. de 2015

Comentada:

el 11 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by