How can I make an Horizontal tab (\t) using TEXT and TeX ?
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Sean de Wolski
am 11 Sep. 2012
Bearbeitet: Sean de Wolski
am 11 Sep. 2012
I get a horizontal tab... Windows7 - 12a
Antworten (2)
per isakson
am 11 Sep. 2012
I cannot reproduce your problem. Your code works as expected here, R2012a,64bit,Win7.
1 Kommentar
Aurelien Queffurust
am 12 Sep. 2012
Bearbeitet: Aurelien Queffurust
am 12 Sep. 2012
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!