matlab - Script Writes Correctly, The Graph Still Doesn't Show Up -
i'm working k-means in matlab. , here code:
k=input('enter number: '); [g c] = kmeans(cobat,k,'dist','sqeuclidean'); y = [cobat g] [s,h]=silhouette(cobat,g,'sqeuclidean') %show silhouette graphic %show plot3d graphic colors=hsv(k); plotclusters(cobat,g,c,colors)
when run it, works, why [s,h]=silhouette(cobat,g,'sqeuclidean')
can't shown?
when deleted line:
colors=hsv(k); plotclusters(cobat,g,c,colors)
...the silhouette graph can shown.
what should graphs can shown?
your means lot me, thank you.
i don't know plotclusters
does, may writing same figure generated silhouette
, potentially overwriting old plot.
try bringing new figure figure
command before call plotclusters
, so:
figure colors = hsv(k) plotclusters(cobat,g,c,colors)
Comments
Post a Comment