mdscale | invalid input arguments of type 'double'

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Walter Roberson
Walter Roberson il 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 Commento
Charles
Charles il 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.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by