我有 10 个矩阵,如下所示:
c1 = [1 428; 2 465; 3 513; 4 540];
c2 = [1 15292; 2 15438; 3 12201; 4 12321];
c3 = [1 5054; 2 2582; 3 2507];
c4 = [1 26602; 2 26708; 3 27178];
c5 = [1 191874; 2 191985; 3 192210; 4 192405];
c6 = [1 185704; 2 186012; 3 186964; 4 186820; 5 187446];
c7 = [1 65666; 2 65728; 3 65877; 4 65972; 5 66215; 6 66162];
c8 = [1 22427; 2 22524; 3 26163; 4 22720];
c9 = [1 26351; 2 26364; 3 26406; 4 26388];
c10 = [1 120188; 2 120256; 3 120411];
我必须编写一个代码,将这 10 个矩阵3
根据它们的第 2 列使用kmeans
.
我怎样才能做到这一点?