MATLAB: Matlab, undefined function or method for input arguments of type double

input argumentundefined function

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:
but surprisingly I had no error just before this for this call:
I am stumped. Can anyone explain why I am getting this error in this case?

Best Answer

  • 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.