Effacer les filtres
Effacer les filtres

inserting variables in \textrm.

3 vues (au cours des 30 derniers jours)
Ulrik William Nash
Ulrik William Nash le 30 Avr 2015
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!

Réponses (1)

Thorsten
Thorsten le 30 Avr 2015
text(x, y, ['\textrm{' variable2 '}'], ...)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by