Help with plot in matlab

1 回表示 (過去 30 日間)
aurc89
aurc89 2015 年 1 月 8 日
コメント済み: aurc89 2015 年 1 月 8 日
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 日
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 件のコメント
aurc89
aurc89 2015 年 1 月 8 日
Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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