Changing horizontal axis to descending order

132 次查看(过去 30 天)
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
set ( gca, 'xdir', 'reverse' )
  5 个评论

请先登录,再进行评论。

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by