How to have this title graph?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I have to plot a graph displaying in the title two parameters each iteration, "cycle" and "minute", with the values after "=".
I can do it only with 1 variable, but if I try in this way:
....
title([' cycle = , minute = ', num2str(cycle), num2str(minute)])
It doesn't show them correctly.
What should I can do? Thank you!
0 件のコメント
回答 (1 件)
Star Strider
2022 年 3 月 22 日
編集済み: Star Strider
2022 年 3 月 23 日
cycle = 42;
minute = 24;
title(sprintf('cycle = %.2f, minute = %.2f', cycle, minute))
Change the format string to get the result you want.
EDIT — (23 Mar 2022 at 4:53)
Corrected typographical error.
.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Title についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!