How to separate plot titles on single line? [solved]
8 ビュー (過去 30 日間)
古いコメントを表示
figure()
plot (time,BrACOM)
%xlim ([tmin tmax])
xlabel('Time [s]');
ylabel('Acc [g]');
legend('x','y','z');
title([head neck helmet impact energy rep]);
I would like the variables to be spaced on the plot title, like:head neck helmet impact energy rep and not headneckhelmetimpactenergyrep
Solution:
title([head ' ' neck ' ' helmet ' ' impact ' ' energy]);
0 件のコメント
採用された回答
その他の回答 (2 件)
Les Beckham
2021 年 7 月 4 日
Try this:
title(sprintf('%s %s %s %s %s %s', head, neck, helmet, impact, energy, rep);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!