您的位置: 首页 > 文章 > Matlab双纵轴 Matlab双纵轴 分类: 文章 • 2025-02-17 21:55:04 x=[0.5,0.3,0.2,0.1]; y=[540,430,420,340]; z=[1340,1270,1210,1150]; [ax,h1]=plotyy(x,y,x,z,@bar,@bar); set( get(ax(2),'Children'),'facecolor','g') set( get(ax(2),'Children'),'barwidth',0.2) set( get(ax(1),'Children'),'barwidth',0.4) 向左转|向右转