matlab绘制柱形图

RSC=[93.89	91.72	88.87];
RRC=[94.68	92.68	90.08];
PIM=[94.86	92.8	91.23];
HCRC=[98.6	83.5	53.7];
LTP_HCRC=[99.5	98.9	84];
VGG_HCRC=[99.5	60.5 1.5 0];
CenterLoss_HCRC=[99.1	57.4	9.2];
MELDB_STGA=[97.375 94.125 89.75];
MELDB_CFS=[100 100 99.875];
X=[0 0.2 0.4];
figure(1);
y=[93.89	91.72	88.87
94.68	92.68	90.08
94.86	92.8	91.23
98.6	83.5	53.7
99.5	98.9	84
99.5	60.5	1.5
99.1	57.4	9.2
97.375 94.125 89.75
100 100 99.875];
bar(y);
legend('0 噪声','20% 噪声','40% 噪声');
set(gca,'xticklabel',{
     'RSC','RRC','PIM','HCRC','LTP+HCRC','VGG+HCRC','CenterLoss+HCRC','MELDB+STGA','MELDB+CFS'});
xlabel('各种先进方法');
ylabel('识别率(%)');

运行效果:
matlab绘制柱形图_第1张图片
作于:
2021-5-7
23:33

你可能感兴趣的:(科研绘图,matlab)