How to horizontally align multiple lines ylabel
이전 댓글 표시

how to put [A], [V] and [P.U.] at the center.
I have used:
set(ylb1, 'Position', [yl_pos, 0, 0],'rotation',0,'VerticalAlignment','middle','HorizontalAlignment','center' );
but it cannot align the text inside, can just align the position of the ylabel.
답변 (1개)
Rik
2019년 9월 20일
0 개 추천
(untested idea)
You can trick the alignment by making sure the square bracket part is the middle line. To achieve this you can add lines with only a space in the front of the label.
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!