Break title into multiple lines? Part 2
古いコメントを表示
shows
title({'You can do it','with a cell array'})
works. Now supppose I have two string variables title1 and title2. How can one apply this method? I tried
title({[title1] [title2]})
But this does not seem to work.
採用された回答
その他の回答 (1 件)
Ameer Hamza
2020 年 11 月 30 日
編集済み: Ameer Hamza
2020 年 11 月 30 日
What you have already wrote is the correct syntax
title1 = 'You can do it';
title2 = 'with a cell array';
title({[title1] [title2]})
You can also write it like this
title({title1 title2})
2 件のコメント
alpedhuez
2020 年 11 月 30 日
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!