mdscale | invalid input arguments of type 'double'

2 次查看(过去 30 天)
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