I have the student (covid) version Through CQU. when I am trying to use cosd(305) for example, I get a reply "Index exceeds the number of array elements (1)". sind and tand work fine.
How do I rectify this problem?

2 个评论

You have inadvertantly created a variable called cosd that is shadowing the function cosd( ). Clear the variable and pick a different name.
Thankyou it is now fixed

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Trigonometry 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by