How can I make an Horizontal tab (\t) using TEXT and TeX ?
조회 수: 13 (최근 30일)
이전 댓글 표시
I manage to display 2 lines in bold as follows:
str =sprintf('{\\bfline1:} \n {\\bfline2:}')
text(0.2,0.3, str)
But if I replace \n (new line) by \t (horizontal tab) :
str =sprintf('{\\bfline1:} \t {\\bfline2:}')
text(0.2,0.3, str)
I get an empty square box. How can I tell MATLAB to interpret \t as an escape character? I am looking for a solution using \t if possible ant not a workaroung using char(a number) or making myself the corresponding spaces ;)
댓글 수: 1
Sean de Wolski
2012년 9월 11일
편집: Sean de Wolski
2012년 9월 11일
I get a horizontal tab... Windows7 - 12a
답변 (2개)
per isakson
2012년 9월 11일
I cannot reproduce your problem. Your code works as expected here, R2012a,64bit,Win7.
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!