creating multi-line title with variable values
3 ビュー (過去 30 日間)
表示 古いコメント
採用された回答
Stephen23
2016 年 8 月 8 日
編集済み: Stephen23
2016 年 8 月 8 日
You can also make a multiline title by constructing a string with newline charcters. This is trivial to construct using sprintf and the arguments:
txt = sprintf('ERROR (m)\ndoy: %d\nigs: %s',doy,igs)
title(txt)
Or, if you really wish to use a cell array:
C = {'ERROR (m)',sprintf('doy: %d',doy),['igs: ',igs]};
title(C)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Find more on Dialog Boxes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!