From: Holly on
Hi, I hope someone can help...

I'm getting an "??? Undefined function or variable" error that I don't understand.

I have a function in an m file that is in the current working directory. This directory is also on the path. When I do a dir I see the m file listed, when I do help function_name I get info on the function, but when I call the function by typing the function name I get ??? Undefined function or variable function_name

Any thoughts?

Thank you very much,

Holly
From: Oleg Komarov on
"Holly " <holly.francois(a)motorola.com> wrote in message <hldqq2$seu$1(a)fred.mathworks.com>...
> Hi, I hope someone can help...
>
> I'm getting an "??? Undefined function or variable" error that I don't understand.
>
> I have a function in an m file that is in the current working directory. This directory is also on the path. When I do a dir I see the m file listed, when I do help function_name I get info on the function, but when I call the function by typing the function name I get ??? Undefined function or variable function_name
>
> Any thoughts?
>
> Thank you very much,
>
> Holly
type dbstop if error
launch the commands
check what's wrong (presumably some inputs are undefined)
after you're finished exit the debg mode and type dbclear if error.

Oleg