필터 지우기
필터 지우기

How to set path of user defined function in matlab2013b?

조회 수: 11 (최근 30일)
Sabanam
Sabanam 2014년 3월 29일
답변: Christopher Pedersen 2014년 3월 29일
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?

채택된 답변

Christopher Pedersen
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.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 3월 29일
편집: Azzi Abdelmalek 2014년 3월 29일
Put your file in a current folder
%or use addpath
addpath('your_folder')

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by