I got message error when add evalclusters function to my ver.

2 次查看(过去 30 天)
Hi all, i add evalclusters functions to matlab ver. 2012a but when I ran it, I got this error message:
Undefined variable "clustering" or class "clustering.evaluation.SilhouetteEvaluation".
Error in evalclusters (line 174) obj = clustering.evaluation.SilhouetteEvaluation(X,YorFun,varargin{:});

回答(1 个)

Walter Roberson
Walter Roberson 2015-9-18
evalclusters was introduced in R2013b. If you copied an R2013b or later evalclusters to your R2012a MATLAB then you are missing the supporting code needed to make evalclusters work.
Note: it would be a copyright violation to copy a newer toolbox function to an older MATLAB without permission from Mathworks.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by