Label with num2str

16 ビュー (過去 30 日間)
Abdulkadir Genç
Abdulkadir Genç 2018 年 8 月 12 日
コメント済み: Abdulkadir Genç 2018 年 8 月 12 日
Hello everyone,
I want to use num2str and I actually managed to use it but I faced a very little problem.
xlabel({"effective stress","ID=" num2str(Id)})
When I write this part of code, x label consists of 3 lines;
1:effective stress
2:ID=
3:'the value of Id'
But I need the 2nd and the 3rd lines to appear on the same line. It is a small detail but I need it for my thesis. Can you please help me.

採用された回答

Stephen23
Stephen23 2018 年 8 月 12 日
xlabel({'effective stress',['ID=',num2str(Id)]})
  3 件のコメント
Stephan
Stephan 2018 年 8 月 12 日
I did not read your question carefully enough and thought you wanted everything in one line. Excuse me.
Best regards
Stephan
Abdulkadir Genç
Abdulkadir Genç 2018 年 8 月 12 日
Thanks for your interest Stephan.
Best regards.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by