matlab, undefined function or method for input arguments of type double

7 ビュー (過去 30 日間)
Andre
Andre 2014 年 1 月 30 日
回答済み: Walter Roberson 2014 年 1 月 30 日
I have read many of the posts related to this type of problem, however, unlike all the posts I have read my input argument is not a function it is a variable. What is also odd is that this variable is called successfully a few times prior to this error. I assume the error is due to a syntax error somewhere in my code but I can't for the life of me see it. I get the error on the first call for the variable ta:
Tp(i+1)=Tp(i)+ds.*(5.*(-wp(i)*gamma-(aa.*wp(i).*(TT(i)-ta(i))...
/Rp(i))-2*(TT(i)-ta(i))*(hwa(i)-hwp(i))./(pi.*Rp(i)))...
+8.*(-wp(i)*gamma-aa.*wp(i).*(Tp(i)-Ta(i))/Rp(i)-2*...
(Tp(i)-ta(i))*(hwa(i)-hwp(i))/(pi.*Rp(i))));
but surprisingly I had no error just before this for this call:
TT(i)=Tp(i)+df.*(3.*(-wp(i)*gamma-(aa.*wp(i).*(Tp(i)-ta(i))/Rp(i))...
-2*(Tp(i)-ta(i))*(hwa(i)-hwp(i))./(pi.*Rp(i))));
I am stumped. Can anyone explain why I am getting this error in this case?
Mahalo!
Andre

採用された回答

Walter Roberson
Walter Roberson 2014 年 1 月 30 日
Your third line is the only one that refers to Ta with a capital T. The other references are to ta with a lower-case t.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by