mdscale | invalid input arguments of type 'double'

2 visualizaciones (últimos 30 días)
Charles
Charles el 13 de Feb. de 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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Feb. de 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 comentario
Charles
Charles el 14 de Feb. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by