matlab畫雙座標圖

整理了一下matlab畫雙座標的代碼,具體如下。如果想分別設置雙座標的label,可以設置Ylim,YTick和YTickLabel。 clc;clear; x=1:20; y1=100*ones(1,20); y2=61:1:80; figure(1) [ax,h1,h2]=plotyy(x,y1,x,y2,'plot','plot'); xlabel('aa','Fontsize', 16,'
相關文章
相關標籤/搜索