Could anyone help me to solve the issue

1 次查看(过去 30 天)
i want to plot the x-axis in graph in reverse order iused the following command xlim([34,40]); set(gca,'Xdir','reverse'); when i used the above command it reverses the xaxis. but i want to have numbers 40,38,36,34 in the xaxis. Could anyone help me how to avoid the intermediate number 39,37,35.
  1 个评论
Bruno Luong
Bruno Luong 2018-10-30
Can you please try to give the subject more meaningful than "Could anyone help me to solve the issue".

请先登录,再进行评论。

采纳的回答

Bruno Luong
Bruno Luong 2018-10-30
set(gca,'xtick',(34:2:40))
  3 个评论
Bruno Luong
Bruno Luong 2018-10-30
编辑:Bruno Luong 2018-10-30
Just add (though you already do this)
set(gca,'Xdir','reverse')
Or do all in one instruction
set(gca,'Xdir','reverse','xtick',(34:2:40),'xlim',[34 40])

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by