フィルターのクリア

How to make a plot with specific scale (Max, Min, and difference)

1 回表示 (過去 30 日間)
Sasha
Sasha 2022 年 9 月 4 日
コメント済み: Sasha 2022 年 9 月 4 日
I would like to ask a help, I need my plot have y-axis with difference 0.2, for example,
the plot result shows y(x) are 0 to 1, and it's difference is about 0.1 (0, 0.1, 0.2, 0.3, .... 1), but I need to make it 0.2 (0, 0.2, 0,4,....1).
What should I write to overcome it? Thank you.

採用された回答

Chunru
Chunru 2022 年 9 月 4 日
x = 0:90;
y = rand(size(x));
plot(x, y);
grid on
yticks(0:.2:1) % Change the yticks interval

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by