This error keeps coming up. Any thoughts?
Array indices must be positive integers or logical values.
Error in Prob3_4_2 (line 17)
T(loop)= Tmean + (Tpeak - Tmean)*cos(w((D(loop))-205));

 采纳的回答

madhan ravi
madhan ravi 2020-9-8

0 个投票

w*

4 个评论

That is, madhan is suggesting that you are missing a multiplication between w and the D(loop)-205 values.
Thank you!! I guess the longer you look at something the harder it is to see error.
That is the reason of this community’s existence ;)
By the way, MATLAB has absolutely no implied multiplication, anywhere that I have been able to find. Not even in the internal language used by the Symbolic Toolbox.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by