From: Yair Altman on
"Heeteak Chung" <heechi(a)yahoo.com> wrote in message <hjnigp$j0p$1(a)fred.mathworks.com>...
> Hello Matlab
> I'm running a simple code which imports a TIFF image and does a simple analysis.
> Originally, I coded this using another computer. When I moved to another computer and try to run it, it gave me an error stated "??? Undefined function or method 'wiener2' for input arguments of type 'double'."
>
> When I type which wiener2 -all, it returned "C:\Program Files\MATLAB\R2008b\toolbox\images\images\wiener2.m % Has no license available".
>
> The function imrotate gave me the same no license issue.
>
> Can anyone tell me what's going on here?

This error message also occurs if you created a user-defined function and gave it a name that is already used by a Matlab toolbox function for which you have no license (and which may not even be installed!). This triggers Matlab to block your entire folder. So, simply rename the offending function. Also see: http://www.mathworks.com/matlabcentral/newsreader/view_thread/163027 and: http://www.mathworks.com/support/solutions/en/data/1-4B6E5E/

Sometimes it can drive you nuts when you accidentally program a function with a name that Matlab has already chosen in one of its toolboxes...

Yair Altman
http://UndocumentedMatlab.com