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 CenterFile Exchange에서 Grid 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