资源描述:
《fcm函数傻瓜式操作》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1直接复制在MATLAB中运行%这是一个FCM函数处理的程序clc,clearallcloseallloadca.txtyangben=load('ca.txt');t=size(yangben);t1=t(1);t2=t(2);J=yangben(:,2:t2-1);data=J(:,:);N_CLUSTER=2;%该值需要根据要求更改,即分类数[center,U,obj_fcn]=fcm(data,N_CLUSTER);%FCM调用N_CLUSTERU=U'2.数据,请复制保存为ca.txt.第一列是编号,最后一列是结果。聚类结束后,请注意转换结果1
2、000025,5,1,1,1,2,1,3,1,1,21002945,5,4,4,5,7,10,3,2,1,21015425,3,1,1,1,2,2,3,1,1,21016277,6,8,8,1,3,4,3,7,1,21017023,4,1,1,3,2,1,3,1,1,21017122,8,10,10,8,7,10,9,7,1,41018099,1,1,1,1,2,10,3,1,1,21018561,2,1,2,1,2,1,3,1,1,21033078,2,1,1,1,2,1,1,1,5,21033078,4,2,1,1,2,1,2,1,1,2103528
3、3,1,1,1,1,1,1,3,1,1,21036172,2,1,1,1,2,1,2,1,1,21041801,5,3,3,3,2,3,4,4,1,41043999,1,1,1,1,2,3,3,1,1,21044572,8,7,5,10,7,9,5,5,4,41047630,7,4,6,4,6,1,4,3,1,41048672,4,1,1,1,2,1,2,1,1,21049815,4,1,1,1,2,1,3,1,1,21050670,10,7,7,6,4,10,4,1,2,41050718,6,1,1,1,2,1,3,1,1,21054590,7,3,2
4、,10,5,10,5,4,4,41054593,10,5,5,3,6,7,7,10,1,41056784,3,1,1,1,2,1,2,1,1,21059552,1,1,1,1,2,1,3,1,1,21065726,5,2,3,4,2,7,3,6,1,41066373,3,2,1,1,1,1,2,1,1,21066979,5,1,1,1,2,1,2,1,1,21067444,2,1,1,1,2,1,2,1,1,21070935,1,1,3,1,2,1,1,1,1,21070935,3,1,1,1,1,1,2,1,1,21071760,2,1,1,1,2,1
5、,3,1,1,21072179,10,7,7,3,8,5,7,4,3,41074610,2,1,1,2,2,1,3,1,1,21075123,3,1,2,1,2,1,2,1,1,21079304,2,1,1,1,2,1,2,1,1,21080185,10,10,10,8,6,1,8,9,1,41081791,6,2,1,1,1,1,7,1,1,21084584,5,4,4,9,2,10,5,6,1,41091262,2,5,3,3,6,7,7,5,1,41099510,10,4,3,1,3,3,6,5,2,41100524,6,10,10,2,8,10,
6、7,3,3,41102573,5,6,5,6,10,1,3,1,1,41103608,10,10,10,4,8,1,8,10,1,41103722,1,1,1,1,2,1,2,1,2,21105257,3,7,7,4,4,9,4,8,1,41105524,1,1,1,1,2,1,2,1,1,21106095,4,1,1,3,2,1,3,1,1,21106829,7,8,7,2,4,8,3,8,2,41108370,9,5,8,1,2,3,2,1,5,41108449,5,3,3,4,2,4,3,4,1,41110102,10,3,6,2,3,5,4,10
7、,2,41110503,5,5,5,8,10,8,7,3,7,41110524,10,5,5,6,8,8,7,1,1,41111249,10,6,6,3,4,5,3,6,1,41112209,8,10,10,1,3,6,3,9,1,41113038,8,2,4,1,5,1,5,4,4,41113483,5,2,3,1,6,10,5,1,1,41113906,9,5,5,2,2,2,5,1,1,41115282,5,3,5,5,3,3,4,10,1,41115293,1,1,1,1,2,2,2,1,1,21116116,9,10,10,1,10,8,3,3
8、,1,41116132,6,3,4,1,5,2,3,9,1,41116192,1