Azzera filtri
Azzera filtri

Changing horizontal axis to descending order

152 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Robert Cumming
Robert Cumming il 18 Nov 2011
set ( gca, 'xdir', 'reverse' )
  5 Commenti

Accedi per commentare.

Più risposte (1)

Guus Janssen
Guus Janssen il 23 Ott 2018
is there a way to do this for semilogx as well?

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by