mdscale | invalid input arguments of type 'double'

조회 수: 2 (최근 30일)
Charles
Charles 2013년 2월 13일
Am I going crazy for does the example on this page:
Not work in MATLAB 2012b? I'm running this on a 64 bit linux. Here what I get after typing the following line:
[Y,stress,disparities] = mdscale(dissimilarities,2);
Undefined function 'lsqisotonic' for input arguments of type 'double'.
Error in mdscale>MDS (line 481) disparities = lsqisotonic(dissimilarities, distances);
Error in mdscale (line 390) [Y,stress,~,disparities] = MDS(Y0,dissimilarities,weights,stressFun,metric,weighted,options);
Don't understand much of it. The input matrices appear to be of the appropiate type (real) according to the documentation. I've tried this on my own data as well and get the same error message. Any clues?
Thanks, Charles.

채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 13일
Please use
which -all mdscale
which -all lsqisotonic
My suspicion would be that you do not have the stats toolbox installed correctly. If you upgraded "in place" overtop of an existing version, you might need to clean out and reinstall.
  댓글 수: 1
Charles
Charles 2013년 2월 14일
Whoops, I had copied the mdscale.m file to my current working directory and overlooked that it would effect the MATLAB search path. Renaming it fixed the problem for me. Thank you very much Walter.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by