MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] matlab CODE問題 (https://www.labfans.com/bbs/showthread.php?t=20849)

dd2dj6oa71 2015-09-22 14:58

matlab CODE問題
 
由於初學 所以不知道錯什麼

在網上 下載了一個CODE

% ====== Get the data set
DS = dcData(2);
subplot(2,2,1);
plot(DS.input(1,:), DS.input(2,:), '.');
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); 這裡錯了 是錯什麼


所有时间均为北京时间。现在的时间是 03:37

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.