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

1 回表示 (過去 30 日間)
Philipp Mueller
Philipp Mueller 2017 年 1 月 3 日
コメント済み: Philipp Mueller 2017 年 1 月 3 日
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.

採用された回答

José-Luis
José-Luis 2017 年 1 月 3 日
text(20,18,['\sigma_{a,1}=', num2str(ymax_woehler)])
  1 件のコメント
Philipp Mueller
Philipp Mueller 2017 年 1 月 3 日
thank you it works :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by