Changing horizontal axis to descending order

161 visualizaciones (últimos 30 días)
Mads
Mads el 18 de Nov. de 2011
Comentada: M4000_EE el 11 de Oct. de 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

Respuesta aceptada

Robert Cumming
Robert Cumming el 18 de Nov. de 2011
set ( gca, 'xdir', 'reverse' )
  5 comentarios
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
is there a way to do this for semilogx as well?

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by