MATLAB: How to set path of user defined function in matlab2013b

functionset path

I have added one function file in image processing toolbox but when m running this function from .m file it shows error that….
Undefined function 'hsv2seg' for input arguments of type 'uint8'.
Error in size_using_fuzzy (line 4) BW=hsv2seg(I);
how can i add this function in matlab?

Best Answer

addpath(fol)
where "fol" is the name of the folder where hsv2seg lives. Matlab will automatically search that folder for functions to use.
Related Question