kmeans_plotdata.m
来自「動態聚類k-means演算 將輸入在程式中的數據資料 給予適當的分群」· M 代码 · 共 29 行
M
29 行
function fig = kmeans_plotdata(indata, class);fig = figure;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');drawnow;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?