필터 지우기
필터 지우기

Could anyone help me to solve the issue

조회 수: 1 (최근 30일)
jaah navi
jaah navi 2018년 10월 30일
댓글: jaah navi 2018년 10월 31일
i want to plot the x-axis in graph in reverse order iused the following command xlim([34,40]); set(gca,'Xdir','reverse'); when i used the above command it reverses the xaxis. but i want to have numbers 40,38,36,34 in the xaxis. Could anyone help me how to avoid the intermediate number 39,37,35.
  댓글 수: 1
Bruno Luong
Bruno Luong 2018년 10월 30일
Can you please try to give the subject more meaningful than "Could anyone help me to solve the issue".

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

채택된 답변

Bruno Luong
Bruno Luong 2018년 10월 30일
set(gca,'xtick',(34:2:40))
  댓글 수: 3
Bruno Luong
Bruno Luong 2018년 10월 30일
편집: Bruno Luong 2018년 10월 30일
Just add (though you already do this)
set(gca,'Xdir','reverse')
Or do all in one instruction
set(gca,'Xdir','reverse','xtick',(34:2:40),'xlim',[34 40])
jaah navi
jaah navi 2018년 10월 31일
thanks it works.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by