フィルターのクリア

Y-axis scale

5 ビュー (過去 30 日間)
skysky2000
skysky2000 2016 年 12 月 24 日
回答済み: skysky2000 2016 年 12 月 25 日
Dear all, How to number y-axis as 1 2 4 8 16 18. When I did : not work
ylim([1 18])
set(gca,'YTick',0:4:18)
Is like Multiple y-axis with 2 help me please

採用された回答

dpb
dpb 2016 年 12 月 24 日
Not sure the effect you're really after but
set(gca,'YTick',[1 2 4 8 16 18])
which can be
set(gca,'YTick',[2.^[0:4] 18])
if you're looking for more concise formulation for the values.
If you intend the ticks to be spaced evenly but labeled otherwise, have to use N (in this case 6) tick values spaced as desired and then 'xticklabel' to write the desired label value at the respective location.

その他の回答 (1 件)

skysky2000
skysky2000 2016 年 12 月 25 日
that perfect thank you very much....

カテゴリ

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