⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fcm.txt

📁 该文件是有关fcm的Matlab仿真算法
💻 TXT
字号:
data = rand(100,2);
        [center,U,obj_fcn] = fcm(data,2);
        plot(data(:,1), data(:,2),'o');
        hold on;
        maxU = max(U);
        % Find the data points with highest grade of membership in cluster 1
        index1 = find(U(1,:) == maxU);
        % Find the data points with highest grade of membership in cluster 2
        index2 = find(U(2,:) == maxU);
        line(data(index1,1),data(index1,2),'marker','*','color','g');
        line(data(index2,1),data(index2,2),'marker','*','color','r');
        % Plot the cluster centers
        plot([center([1 2],1)],[center([1 2],2)],'*','color','k')
        hold off;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -