clc
clear;
y=[ 1 0.957 0.934 0.923 0.872 0.957 0.957;0.94 0.89 0.614 0.805 0.815 0.815 0.815;0.95 0.741 0.741 0.836 0.604 0.644 0.673];
b=bar(y); %绘制基本柱形图
grid on; %绘制网格线
ch = get(b,'children');
set(gca,'XTickLabel',{'Soybean','Votes','Zoo'}) %为每组数据命名
legend('AWSC','ESCHCD','SUBCAD','K-modes','CVCE','RDCE','RRCE');%为每个类别命名
title('各算法在Soybean、Votes、Zoo上的正确率'); %柱形图标题
axis([0.5,3.5,0,1.1])%设定x、y轴取值范围
ylabel('所用时间(单位:秒)');%设定y轴标签
xlabel('所用时间秒)');
clear;
y=[ 1 0.957 0.934 0.923 0.872 0.957 0.957;0.94 0.89 0.614 0.805 0.815 0.815 0.815;0.95 0.741 0.741 0.836 0.604 0.644 0.673];
b=bar(y); %绘制基本柱形图
grid on; %绘制网格线
ch = get(b,'children');
set(gca,'XTickLabel',{'Soybean','Votes','Zoo'}) %为每组数据命名
legend('AWSC','ESCHCD','SUBCAD','K-modes','CVCE','RDCE','RRCE');%为每个类别命名
title('各算法在Soybean、Votes、Zoo上的正确率'); %柱形图标题
axis([0.5,3.5,0,1.1])%设定x、y轴取值范围
ylabel('所用时间(单位:秒)');%设定y轴标签
xlabel('所用时间秒)');