mdscale | invalid input arguments of type 'double'

2 Ansichten (letzte 30 Tage)
Charles
Charles am 13 Feb. 2013
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Feb. 2013
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 Kommentar
Charles
Charles am 14 Feb. 2013
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by