📄 kmeans_plotclusters.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 + -