资源简介
云模型是在模糊集合理论和概率理论进行交叉渗透的基础上构造的特定算法,即云发生器,进行定性概念和定量表示之间的不确定转换,它揭示随机性和模糊性的内在关联性。在此利用实例解释云模型的应用。
代码片段和文件信息
function iriscloud
global Y1 Y2 Y3;
for i=1:50
Y1(i)=1;
Y2(i)=1;
Y3(i)=1;
end
n=300;
x1(1:)=[5.14.94.74.65.05.44.65.04.44.95.44.84.84.35.85.75.45.15.75.15.45.14.65.14.85.05.05.25.24.74.85.45.25.54.95.05.54.94.45.15.04.54.45.05.14.85.14.65.35.0];
x1(2:)=[3.53.03.23.13.63.93.43.42.93.13.73.43.03.04.04.43.93.53.83.83.43.73.63.33.43.03.43.53.43.23.13.44.14.23.13.23.53.13.03.43.52.33.23.53.83.03.83.23.73.3];
x1(3:)=[1.41.41.31.51.41.71.41.51.41.51.51.61.41.11.21.51.31.41.71.51.71.51.01.71.91.61.61.51.41.61.61.51.51.41.51.21.31.51.31.51.31.31.31.61.91.41.61.41.51.4];
x1(4:)=[0.20.20.20.20.20.40.30.20.20.10.20.20.10.10.20.40.40.30.30.30.20.40.20.50.20.20.40.20.20.20.20.40.10.20.10.20.20.10.20.20.30.30.20.60.40.30.20.20.20.2];
ex1(1)=mean(x1(1:)‘);en1(1)=std(x1(1:)‘);
ex1(2)=mean(x1(2:)‘);en1(2)=std(x1(2:)‘);
ex1(3)=mean(x1(3:)‘);en1(3)=std(x1(3:)‘);
ex1(4)=mean(x1(4:)‘);en1(4)=std(x1(4:)‘);
subplot(221)
plot3(x1(1:)x1(3:)x1(4:)‘Marker‘‘*‘‘Markersize‘2‘linestyle‘‘no‘‘color‘‘k‘)
axis([4 8 1.1 6.7 0 2.5])
title(‘植物数据‘‘fontsize‘8)
text(ex1(1)+1ex1(3)ex1(4)+0.3‘\leftarrowSetosa‘‘FontSize‘8)
xlabel(‘萼片长度/(cm)‘‘fontsize‘8)ylabel(‘花瓣高度/(cm)‘‘fontsize‘8)zlabel(‘花瓣宽度/(cm)‘‘fontsize‘8)
grid on
hold on
x2(1:)=[7.06.46.95.56.55.76.34.96.65.25.05.96.06.15.66.75.65.86.25.65.96.16.36.16.46.66.86.76.05.75.55.55.86.05.46.06.76.35.65.55.55.55.86.05.46.06.76.35.65.5];
x2(2:)=[3.23.23.12.32.82.82.32.42.92.72.03.02.22.92.93.13.02.72.22.53.22.82.52.82.93.02.83.02.92.62.42.42.72.73.03.43.12.33.02.52.63.02.62.32.73.02.92.92.52.8];
x2(3:)=[4.74.54.94.04.64.54.73.34.63.93.54.24.04.73.64.44.54.14.53.94.84.04.94.74.34.44.85.04.53.53.83.73.95.14.54.54.74.44.14.04.44.64.03.34.24.24.24.33.04.1];
x2(4:)=[1.41.51.51.31.51.31.61.01.31.41.01.51.01.41.31.41.51.01.51.11.81.31.51.21.31.41.41.71.51.01.11.01.21.61.51.61.51.31.31.31.21.41.21.01.31.21.31.31.11.3];
ex2(1)=mean(x2(1:)‘);en2(1)=std(x2(1:)‘);
ex2(2)=mean(x2(2:)‘);en2(2)=std(x2(2:)‘);
ex2(3)=mean(x2(3:)‘);en2(3)=std(x2(3:)‘);
ex2(4)=mean(x2(4:)‘);en2(4)=std(x2(4:)‘);
subplot(221)
plot3(x2(1:)x2(3:)x2(4:)‘Marker‘‘*‘‘Markersize‘2‘linestyle‘‘no‘‘color‘‘k‘)
text(ex2(1)+1ex2(3)ex2(4)‘\leftarrow Versicolour‘‘FontSize‘8)
hold on
x3(1:)=[6.35.87.16.36.57.64.97.36.77.26.56.46.85.75.86.46.57.77.76.06.95.67.76.36.77.26.26.16.47.27.47.96.46.36.17.7
- 上一篇:无线传感网节点定位目标定位matlab仿真
- 下一篇:机器人避障的matlab仿真
评论
共有 条评论