How to remove the tic labels but not the marks?
이전 댓글 표시
I would like to remove tick marks on the y-axis but not on the x-axes. And I want to remove the labels (numbers) of all ticks.
채택된 답변
추가 답변 (3개)
Elias Gule
2015년 3월 11일
%%Remove tick labels for the X and Y axes
tickCell = {'XTickLabel',{},'YTickLabel',{}};
set(gca,tickCell{:});
Elias Gule
2015년 3월 11일
%%To remove tick marks on the y-axis
tickMarks = {'YTick',[]};
set(gca,tickMarks{:});
Sergio Yanez-Pagans
2021년 8월 21일
편집: Walter Roberson
2021년 8월 21일
0 개 추천
This can also help you to create ticks:
카테고리
도움말 센터 및 File 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!