From: Lommen on 10 Aug 2010 10:07 I am going mad! I keep getting "??? Undefined function or variable" when I run the function calc_RSI. I have used "dir" and "path" and the file exists in both?
From: dpb on 10 Aug 2010 10:09 Lommen wrote: > I am going mad! I keep getting "??? Undefined function or variable" > when I run the function calc_RSI. > > I have used "dir" and "path" and the file exists in both? Case mismatch, perhaps??? ML is case-sensitive in matching variable and function names. --
From: Andy on 10 Aug 2010 10:15 "Lommen " <lomme028(a)math.umn.edu> wrote in message <i3rme8$n$1(a)fred.mathworks.com>... > I am going mad! I keep getting "??? Undefined function or variable" when I run the function calc_RSI. > > I have used "dir" and "path" and the file exists in both? Well, clearly the function or variable doesn't exist within the scope of the function. But we can't help you beyond repeating the error message back to you if you don't show us some code and tell us why you think the function or variable is defined at the time the code calls for it.
From: Sean on 10 Aug 2010 10:15 "Lommen " <lomme028(a)math.umn.edu> wrote in message <i3rme8$n$1(a)fred.mathworks.com>... > I am going mad! I keep getting "??? Undefined function or variable" when I run the function calc_RSI. > > I have used "dir" and "path" and the file exists in both? which calc_RSI Or is it an error in the function? I.e. the function is missing a variable or has a bad function call.
From: ImageAnalyst on 10 Aug 2010 10:19
Set a breakpoint right before you call that function. Clear the command window with the clc command. Then execute the function and copy the entire contents of the command window and report it back here in this newsgroup. |