Too many non-property/value arguments error occurred when applying a text box to a figure
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Zeynab Mousavikhamene
am 6 Sep. 2019
Kommentiert: Walter Roberson
am 6 Sep. 2019
Here is the line:
text(2,3,'\bf fontname{times} infty','FontSize',12,'center')
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Sep. 2019
'center' is not an option by itself. You want either 'HorizontalAlignment', 'center' or 'VerticalAlignment', 'center'
Also you appear to be missing \ before fontname and before infty: '\bf \fontname{times} \infty'
2 Kommentare
Walter Roberson
am 6 Sep. 2019
text(2, 3, '\bf\fontname{times}\infty','horizontalalignment', 'center', 'fontsize', 12)
That is, those two spaces you had in your control string were being output as spaces.
\ signals to the (default) tex interpreter that the next few characters are a command or special character . For example 'beta \beta' would output
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!