pdistmex - Error - Undefined function 'pdistmex' for input arguments of type 'double'.
이전 댓글 표시
Hello,
I have got the following problem. The function pdist(X,dist) gives me the following error.
"Undefined function 'pdistmex' for input arguments of type 'double'."
I dont understand why it does not work, because X is always a 'double' or isnt it?
The following lines are the code from the MatLab function pdist(X,dist).
% Call a mex file to compute distances for the standard distance measures
% and full real double or single data.
if ~strcmp(dist,'usr') && (isfloat(X) && ~issparse(X)) % ~usr => ~complex
additionalArg = cast(additionalArg,class(X));
% Here is the error.
Y = pdistmex(X',dist,additionalArg)
elseif ~strcmp(dist,'usr') && isfloat(X) % ~usr => ~complex
additionalArg = cast(additionalArg,class(X));
Y = pdistSparse(X', dist, additionalArg);
답변 (1개)
Sahithi Kanumarlapudi
2019년 10월 31일
편집: Sahithi Kanumarlapudi
2019년 10월 31일
Hello,
You usually get this error if don’t have license to the required toolbox. Ensure that you have license to ‘Statistics and Machine Learning Toolbox’.
If you have a valid license and still you are getting the error then run the following commands
toolboxcache
rehash toolboxcache
The following link shows the common errors and reasons while running functions
Hope this helps!
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!