inserting variables in \textrm.

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!

Respuestas (1)

Thorsten
Thorsten el 30 de Abr. de 2015

0 votos

text(x, y, ['\textrm{' variable2 '}'], ...)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Abr. de 2015

Respondida:

el 30 de Abr. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by