Date: Apr 7, 2011 12:03 PM
Subject: Re: Undefined function or variable - for no reason...
"Øyvind" wrote in message <email@example.com>...
> I think I have the same problem. I have some functions with the same name as some functions from the Neural Network Package. No functions in that folder will work.
> But if I move the contents of that folder to a different folder after Matlab is started, it works.
> "Jeremy Lagorse" <firstname.lastname@example.org> wrote in message <email@example.com>...
> > I had the same problem. It seems that if there is a function in your folder that has the same name of a matlab function (even if it is a function from a pakcage that you did not install), you can have this problem.
> > The only solution that I found to avoid this problem is to rename all the functions in the folder by adding my name at the end of the function (for instance "yourfunction.m" is then renamed with "yourfunction_yourname.m").
> > Please, let me know if this worked!
> > Thanks.
> > Jeremy
Have you tried
>> rehash path
seems to work for me (but I'm not 100% certain)