Changing horizontal axis to descending order

Hi all.
Do anyone know how to change the order of xaxis labels in the plot function? Instead of, say, 1 , 2 , 3... i would the axis to plot for ..., 3, 2, 1.
Thank a lot,
Mads

 채택된 답변

Robert Cumming
Robert Cumming 2011년 11월 18일

13 개 추천

set ( gca, 'xdir', 'reverse' )

댓글 수: 5

Mads
Mads 2011년 11월 18일
great, ty
Tamim
Tamim 2016년 12월 20일
thanks, worked perfectly.
thank in advance
Thank you very much
M4000_EE
M4000_EE 2020년 10월 11일
Thanks a lot

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

추가 답변 (1개)

Guus Janssen
Guus Janssen 2018년 10월 23일

0 개 추천

is there a way to do this for semilogx as well?

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2011년 11월 18일

댓글:

2020년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by