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

 Respuesta aceptada

Robert Cumming
Robert Cumming el 18 de Nov. de 2011
set ( gca, 'xdir', 'reverse' )

5 comentarios

Mads
Mads el 18 de Nov. de 2011
great, ty
Tamim
Tamim el 20 de Dic. de 2016
thanks, worked perfectly.
CHHLONH Chhith
CHHLONH Chhith el 19 de Abr. de 2018
thank in advance
MUSAAB AHMED
MUSAAB AHMED el 3 de Sept. de 2020
Thank you very much
M4000_EE
M4000_EE el 11 de Oct. de 2020
Thanks a lot

Iniciar sesión para comentar.

Más respuestas (1)

Guus Janssen
Guus Janssen el 23 de Oct. de 2018

0 votos

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

Categorías

Etiquetas

Preguntada:

el 18 de Nov. de 2011

Comentada:

el 11 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by