MATLAB讀取Execl數據並繪製曲線圖

  • 2019 年 12 月 10 日
  • 筆記

版權聲明:本文為博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

本文鏈接:https://blog.csdn.net/weixin_36670529/article/details/103404238

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');