How to insert YTick without numbering in a specific interval

4 ビュー (過去 30 日間)
AVM
AVM 2020 年 5 月 9 日
コメント済み: AVM 2020 年 5 月 9 日
I would like to customise the Y axis in matlab plot. I need to insert the tick without numbering. using the command "set(gca,'Yticklabel',[])" I just get Y axis without numbering at all. But I need some interval to show by numbering and also I would like to fill the empty spaces between the numbers by tick sysmbol (minorTick) without numbering . Is there any way to do that in Matlab? Pl somebody help me.

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 5 月 9 日
ylabels() and pass a cell array of character vectors, with one entry for each ytick value. Some of the entries can be the empty character vector ''
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 5 月 9 日
yticks(1:5)
ylabels({'1', '2', '', '', '5'})
AVM
AVM 2020 年 5 月 9 日
Sorry, Minor Tick without numbering is not coming.

サインインしてコメントする。

カテゴリ

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