Date: May 30, 2012 8:29 AM
Author: John D'Errico
Subject: Re: Undefined function or variable - for no reason...
"Øyvind" wrote in message <email@example.com>...
> You cannot have the same function name as an already existing matlab function (either built-in or from one of the libraries). It doesn't matter if you don't have the respective library installed.
> I had this problem and couldn't figure it out before I contacted Matlab support.
In fact, this is a false statement.
For example, I do NOT have the image processing toolbox
so imshow does not exist.
>> which imshow
'imshow' not found.
I can define a variable with that name.
>> imshow = 7
Now, try creating an imshow function.
>> edit imshow
>> type imshow
disp('Gosh, it works fine')
Now, test the code out.
Gosh, it works fine