Date: May 30, 2012 8:29 AM
Author: John D'Errico
Subject: Re: Undefined function or variable - for no reason...

"√ėyvind" wrote in message <jq4v8a$21u$>...
> 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
imshow =

clear imshow

Now, try creating an imshow function.

>> edit imshow
>> type imshow

function imshow
disp('Gosh, it works fine')

Now, test the code out.

>> imshow
Gosh, it works fine