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

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.

 Akzeptierte Antwort

José-Luis
José-Luis am 3 Jan. 2017

1 Stimme

text(20,18,['\sigma_{a,1}=', num2str(ymax_woehler)])

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by