Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2015-09-22, 14:58   #1
dd2dj6oa71
初级会员
 
注册日期: 2015-09-22
帖子: 1
声望力: 0
dd2dj6oa71 正向着好的方向发展
问题 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); 這裡錯了 是錯什麼
dd2dj6oa71 当前离线   回复时引用此帖
回复

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 20:11


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