Change Tick Mark Enumeration for Plots

3 ビュー (過去 30 日間)
MiauMiau
MiauMiau 2015 年 5 月 13 日
回答済み: dpb 2015 年 5 月 13 日
I have the following question: I want to plot for the y-axis a range from 0 to 2, but only one to have the ticks from 0 to 1 enumerated - is that possible? I did not find any solution yet looking at the "set" function (I have Matlab 2014a) Thanks

採用された回答

dpb
dpb 2015 年 5 月 13 日
Sure, just set what you want...as a note going forward, most often with these kinds of things, "just try it" is the fastest way to the solution.
ylim([0 2])
set(gca,'xtick', [0 1])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by