MATLAB: Where nsctdec function is defined

mammogramnonsubsampled contourlet transform

sir
i have compiled your NonSubsampled Contourlet Transform GUI program for mammogram enhancement.i got error message "nscdec function not defined". pls help me to understand the program.

Best Answer

If you have downloaded an M-file, then you need to add the folder (directory) in which that M-file lives to the MATLAB path, otherwise MATLAB cannot find it.
use the addpath() command, or pathtool
For example, if the file is located in c:\mfiles
>>addpath('c:\mfiles')
Or just enter:
>>pathtool
and add the folder.