Effacer les filtres
Effacer les filtres

Help with plot in matlab

1 vue (au cours des 30 derniers jours)
aurc89
aurc89 le 8 Jan 2015
Commenté : aurc89 le 8 Jan 2015
Hello, I have a simple question: I need to plot two vectors x and y as a function y=f(x), i.e. plot(x,y). I want the y numerical values not to appear on the vertical axis: how can I do that? Thanks

Réponse acceptée

Titus Edelhofer
Titus Edelhofer le 8 Jan 2015
Hi,
two possibilities:
  • You remove the ticks: set(gca, 'ytick', []), but this way you would also see no grid lines.
  • Remove the labels: set(gca, 'yticklabel', [])
Titus
  1 commentaire
aurc89
aurc89 le 8 Jan 2015
Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by