답변 (1개)

dpb
dpb 2017년 5월 15일
편집: dpb 2017년 5월 17일

1 개 추천

Get pretty close approximation (so to speak :) ) that way...
hAx=axes;
xlim([0,27])
set(hAx,'xtick',[0 15 25])
hT=text(7.5, 0.0, '\approx', ...
'fontsize',14,'fontweight','bold', ...
'rotation',90,'horizontalalign','center');
produces
You'll have to rig up the actual axis limits it you want the asymmetrical ticks vis a vis position. Depending on what you actually have, may be able to just use 'xticklabel' with appropriate values at existing tick locations.

카테고리

도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2017년 5월 15일

편집:

2019년 8월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by