
Re: Undefined function or variable  for no reason...
Posted:
Sep 22, 2010 6:37 AM


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
"Øyvind " <oyvdahl@online.no> wrote in message <i6vb1u$36j$1@fred.mathworks.com>... > Did anyone ever find a solution to this? I am having the exact same problem. Tried reinstalling matlab, but no luck. > > When I find a folder that works, every script works in that folder. So everytime I start Matlab I have to find a folder that works (totally random each time) and move all my scripts to that folder. > > I use Matlab R2010 and Windows 7. I installed Matlab on my D: drive instead of C:, I don't know if that is making Matlab confused. But I have found folders on both my C and my D drive that works.

