⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kmeans_plotclusters.m

📁 動態聚類k-means演算 將輸入在程式中的數據資料 給予適當的分群
💻 M
字号:
function kmeans_plotclusters(fig, clusters,indata,class);figure(fig);hold on;tmp=find(class==1);plot(indata(tmp,1), indata(tmp,2),'.b');tmp=find(class==2);plot(indata(tmp,1), indata(tmp,2),'.g');tmp=find(class==3);plot(indata(tmp,1), indata(tmp,2),'.r');tmp=find(class==4);plot(indata(tmp,1), indata(tmp,2),'.c');tmp=find(class==5);plot(indata(tmp,1), indata(tmp,2),'.m');tmp=find(class==6);plot(indata(tmp,1), indata(tmp,2),'.y');tmp=find(class>6);plot(indata(tmp,1), indata(tmp,2),'.k');plot(clusters(:,1), clusters(:,2),'+r');drawnow;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -