代码语言:javascript复制
clc;
close all;
num = xlsread('D:paper1multiscalefigureintroductionclass_statistics.xlsx');
cls = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];
R_CNN = num(1,:);
SPPNet = num(2,:);
Fast = num(3,:);
Faster = num(4,:);
SSD = num(5,:);
plot(cls,R_CNN,'r-*');
set(gca,'xtick',[1:1:21]);
set(gca,'XTickLabel',{'aero','bird','bike','boat','bottle','bus','car','cat','chair','cow','table','dog','horse','mbike','person','plant','sheep','sofa','train','tv','mAP'})
hold on
plot(cls,SPPNet,'b-s');
hold on
plot(cls,Fast,'g- ');
hold on
plot(cls,Faster,'m-o');
hold on
plot(cls,SSD,'m-p');
hold on;
h=legend('R-CNN','SPPNet','Fast R-CNN','Faster R-CNN','SSD');