inserting variables in \textrm.

3 ビュー (過去 30 日間)
Ulrik William Nash
Ulrik William Nash 2015 年 4 月 30 日
回答済み: Thorsten 2015 年 4 月 30 日
Hi,
I am trying to incorporate the content of variable2 into \textrm. I am having trouble getting this to work. My attempt is shown further down. What am I doing wrong?
variable2 = ['sometext ',sprintf('%0.3f', variable1), ' '];
text(x,y,'\textrm{variable2}','interpreter','latex','Interpreter','latex','fontsize', font_x,'FontWeight','bold')
I appreciate the help!

回答 (1 件)

Thorsten
Thorsten 2015 年 4 月 30 日
text(x, y, ['\textrm{' variable2 '}'], ...)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by