Filter löschen
Filter löschen

Changing horizontal axis to descending order

154 Ansichten (letzte 30 Tage)
Mads
Mads am 18 Nov. 2011
Kommentiert: M4000_EE am 11 Okt. 2020
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

Akzeptierte Antwort

Robert Cumming
Robert Cumming am 18 Nov. 2011
set ( gca, 'xdir', 'reverse' )
  5 Kommentare
MUSAAB AHMED
MUSAAB AHMED am 3 Sep. 2020
Thank you very much
M4000_EE
M4000_EE am 11 Okt. 2020
Thanks a lot

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Guus Janssen
Guus Janssen am 23 Okt. 2018
is there a way to do this for semilogx as well?

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by