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

 채택된 답변

Titus Edelhofer
Titus Edelhofer 2015년 1월 8일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2015년 1월 8일

댓글:

2015년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by