Effacer les filtres
Effacer les filtres

Could anyone help me to solve the issue

1 vue (au cours des 30 derniers jours)
jaah navi
jaah navi le 30 Oct 2018
Commenté : jaah navi le 31 Oct 2018
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 commentaire
Bruno Luong
Bruno Luong le 30 Oct 2018
Can you please try to give the subject more meaningful than "Could anyone help me to solve the issue".

Connectez-vous pour commenter.

Réponse acceptée

Bruno Luong
Bruno Luong le 30 Oct 2018
set(gca,'xtick',(34:2:40))
  3 commentaires
Bruno Luong
Bruno Luong le 30 Oct 2018
Modifié(e) : Bruno Luong le 30 Oct 2018
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])
jaah navi
jaah navi le 31 Oct 2018
thanks it works.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by