printclusters.m

来自「使用matlab进行实现的kmeans算法。数据集。」· M 代码 · 共 18 行

M
18
字号
function printClusters(x,c,j);% PRINTCLUSTERS : print out j-component of the data in each cluster% printClusters(x,c,j)%	x - data%	c - categories%	j - which component% Copyright (c) 1995 Frank Dellaert% All rights Reservednc = max(c);for i=1:nc,  cl = cluster(x,c,i);  fprintf(1,'cluster %d:\n', i );  cl(j,:)end

⌨️ 快捷键说明

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