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));

 Akzeptierte Antwort

madhan ravi
madhan ravi am 8 Sep. 2020

0 Stimmen

w*

4 Kommentare

Walter Roberson
Walter Roberson am 8 Sep. 2020
That is, madhan is suggesting that you are missing a multiplication between w and the D(loop)-205 values.
Charles LaMotte
Charles LaMotte am 8 Sep. 2020
Thank you!! I guess the longer you look at something the harder it is to see error.
madhan ravi
madhan ravi am 8 Sep. 2020
That is the reason of this community’s existence ;)
Walter Roberson
Walter Roberson am 8 Sep. 2020
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by