"Alicia " <
ast...@asdl.gatech.edu> wrote in message <jshr8b$lbl$
1...@newscl01ah.mathworks.com>...
>
> This is the error:
> ??? Undefined function or variable 'n'.
> Error in ==> @(th)isp(n,m,th)
> Error in ==> fsolve at 253
> fuser = feval(funfcn{3},x,varargin{:});
>
> I hope I explained that well enough. Please help!
================
The variable 'n' did not exist at the time you defined the anonymous function. Here's an example of the same error in isolation from other code,
>> clear all; f=@(a) sin(a+b); f(1)
Undefined function or variable 'b'.
Error in @(a)sin(a+b)