How to set path of user defined function in matlab2013b?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sabanam
le 29 Mar 2014
Réponse apportée : Christopher Pedersen
le 29 Mar 2014
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 commentaires
Réponse acceptée
Christopher Pedersen
le 29 Mar 2014
addpath(fol)
where "fol" is the name of the folder where hsv2seg lives. Matlab will automatically search that folder for functions to use.
0 commentaires
Plus de réponses (1)
Azzi Abdelmalek
le 29 Mar 2014
Modifié(e) : Azzi Abdelmalek
le 29 Mar 2014
Put your file in a current folder
%or use addpath
addpath('your_folder')
0 commentaires
Voir également
Catégories
En savoir plus sur Search Path dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!