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

 Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 8 de En. de 2015

0 votos

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

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Preguntada:

el 8 de En. de 2015

Comentada:

el 8 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by