举个例子吧:
t = 0:0.1:10;
ax(1) = axes('position',[.1 .1 .8 .85]);
plot(t,tan(t), 'k');
set(ax(1), 'box','off','xgrid','on','ygrid','on');
xlabel('x轴');xlabel('Y轴1');
ax(2) = axes('position','[.1 .1 .8 .4]);
plot(t, cos(t), 'r');
set(ax(2), 'Yaxislocation','right','color','none','ycolor','r','box','off');
xlabel('Y轴2');
ax(3) = axes('position',[.1 .55 .8 .4]);
plot(t, sin(t), 'b');
set(ax(3), 'YaxisLocation','right','color','none','ycolor','b',...
'xaxislocation','top','xtick',[],'box','off');
xlabel('Y轴3');