how to specify y axis?
古いコメントを表示
how to spesify left y axis as follow:
(0 500 1000)

採用された回答
その他の回答 (1 件)
the cyclist
2020 年 6 月 21 日
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])
5 件のコメント
Ibrahim AlZoubi
2020 年 6 月 21 日
the cyclist
2020 年 6 月 21 日
編集済み: the cyclist
2020 年 6 月 21 日
Here is a simple example that shows that this syntax works:
figure
plot(1000*rand(7))
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])

Perhaps you are doing something afterward that changes it? Maybe you could post the code that creates your figure.
Ibrahim AlZoubi
2020 年 6 月 21 日
Ibrahim AlZoubi
2020 年 6 月 21 日
the cyclist
2020 年 6 月 21 日
rand(7)
was just me generating some random numbers to plot, to illustrate that my code suggestion worked in that case.
カテゴリ
ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
