where is the xlabel in yyplot?

조회 수: 2 (최근 30일)
Jonas
Jonas 2015년 6월 7일
댓글: Hiskiel Stephanus 2015년 6월 9일
Label the left y-axis by passing the first axes to the ylabel function. Then, label the right y-axis by passing the second axes to the ylabel function. Label the x-axis using either axes.
ylabel(ax(1),'Semilog Plot') % label left y-axis
ylabel(ax(2),'Linear Plot') % label right y-axis
xlabel(ax(2),'Time') % label x-axis
But the xlabel does not appear in my matlab 2015a plot nor does it on the help page.
Edit: As a workaround
xlabel(ax(1),'Time') % label x-axis
worked. What did I do wrong? Or do matlab plot commands just always need a "work around"?
  댓글 수: 1
Hiskiel Stephanus
Hiskiel Stephanus 2015년 6월 9일
Very funny. You actually have the answer.
Stop panicking

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2015년 6월 7일
Very funny! You've found a documented bug.
What did I do wrong?
Nothing.
Or do matlab plot commands just always need a "work around"?
No, only sometimes.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by