PlotClusters(Data,I​DX,Centers,Colors)

버전 2.0.2.0 (5.01 KB) 작성자: Elad Kivelevitch
This function plots clustering data, for example the one provided by kmeans, if the data is 2d or 3d
다운로드 수: 1.8K
업데이트 날짜: 2017/8/19

라이선스 보기

This function takes clustering data and plots it, if the data is 2d or 3d. The inputs are:
An m-by-d matrix of data points, where d is the number of dimension and m the number of data points
An m-by-1 vector of indices that associate each data point with a cluster.
Optional inputs:
A c-by-d matrix with c cluster centers. If not given, the function calculates them.
A c-by-3 matrix of colors, as generated by the hsv command. The number of colors has to be no less than the number of clusters
Uses: plot/plot3
Note: this was only tested with version 2008a on Windows. Should work for all versions.

인용 양식

Elad Kivelevitch (2025). PlotClusters(Data,IDX,Centers,Colors) (https://kr.mathworks.com/matlabcentral/fileexchange/31710-plotclusters-data-idx-centers-colors), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2017a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Cluster Analysis and Anomaly Detection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
2.0.2.0

.

2.0.1.0

Smaller number of point in the example to show centers

2.0.0.0

Version 2 includes two main improvements:
1. Performance is improved per Arnobou's comment below.
2. Help improvements + added example of how to use the function.

1.0.0.0