How can i use a variable in my text(...) - command?

1 visualización (últimos 30 días)
Philipp Mueller
Philipp Mueller el 3 de En. de 2017
Comentada: Philipp Mueller el 3 de En. de 2017
Hi,
ymax_woehler is a variable with the value 30. How can i use this variable in my text(...)-command? With num2str(ymax_woehler)?
text(20,18,'\sigma_{a,1}= ymax_woehler')
Thank you.

Respuesta aceptada

José-Luis
José-Luis el 3 de En. de 2017
text(20,18,['\sigma_{a,1}=', num2str(ymax_woehler)])

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by