Date: Jun 28, 2011 8:55 PM
Author: nick
Subject: Re: Undefined function or variable - for no reason...

"Shai " <shai.bagon@weizmann.ac.il> wrote in message <inkn7p$fbi$1@fred.mathworks.com>...
> "√ėyvind" wrote in message <i7equ0$1g3$1@fred.mathworks.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.
> >
> > Oyvind
> >
> >
> > "Jeremy Lagorse" <jeremy.lagorse@veolia.com> wrote in message <i7cm8g$mms$1@fred.mathworks.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
> or
> >> rehash path
> ??
> seems to work for me (but I'm not 100% certain)