필터 지우기
필터 지우기

How to give axis labels in plotyy comand while it is used in subplot(2.​1.1)......​.....

조회 수: 1 (최근 30일)
Chris Martin
Chris Martin 2014년 5월 27일
댓글: Chris Martin 2014년 5월 27일
How to give axis labels in plotyy comand while it is used in subplot(2.1.1)...........

답변 (1개)

rifat
rifat 2014년 5월 27일
편집: rifat 2014년 5월 27일
x = 1:5;
y1 = 1:5;
y2 = 5:-1:1;
figure
subplot(2,1,1)
[ax h1 h2]=plotyy(x,y1,x,y2);
set(get(ax(1),'Ylabel'),'String','this is Y axis 1!!!');
set(get(ax(2),'Ylabel'),'String','this is Y axis 2!!!');

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by