How to set path of user defined function in matlab2013b?
11 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Christopher Pedersen
2014-3-29
addpath(fol)
where "fol" is the name of the folder where hsv2seg lives. Matlab will automatically search that folder for functions to use.
0 个评论
更多回答(1 个)
Azzi Abdelmalek
2014-3-29
编辑:Azzi Abdelmalek
2014-3-29
Put your file in a current folder
%or use addpath
addpath('your_folder')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!