Why can I not evaluate this while loop?

 采纳的回答

James Tursa
James Tursa 2015-9-11
编辑:James Tursa 2015-9-11
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 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by