How to set the y-axis values to be only integers?
59 ビュー (過去 30 日間)
古いコメントを表示
Hi everybody,
If I have the following vector
x = [1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 3 3 3 3];
and I want to create a plot on which the y-axis will contain integers between 0 and 4 (including 0 and 4), without showing any numbers in between, such as 2.8 or 1.2 for example. Hence, plot(x) doesn't work on that case. Could someone help on this please? Thanks in advance.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で White についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!