Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2015-09-22
帖子: 1
声望力: 0 ![]() |
![]()
由於初學 所以不知道錯什麼
在網上 下載了一個CODE % ====== Get the data set DS = dcData(2); subplot(2,2,1); plot(DS.input(1, ![]() ![]() axis tight, axis image % ====== Run kmeans centerNum=4; [center, U, distortion, allCenters] = kMeansClustering(DS.input, centerNum); % ====== Plot the result subplot(2,2,2); vqDataPlot(DS.input, center); subplot(2,1,2); plot(distortion, 'o-'); xlabel('No. of iterations'); ylabel('Distortion'); grid on 它說DS = dcData(2); 這裡錯了 是錯什麼 |
![]() |
![]() |