How can I make an Horizontal tab (\t) using TEXT and TeX ?
16 次查看(过去 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 个评论
回答(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 中查找有关 Characters and Strings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!