フィルターのクリア

How to insert the whole vector in the title?

11 ビュー (過去 30 日間)
edoardo amarotti
edoardo amarotti 2020 年 11 月 14 日
コメント済み: edoardo amarotti 2020 年 11 月 14 日
Dear all, I need to insert the whole vector variables in the same title.
Here I report a skecth of my script. This part works but the problem is that the title is on different lines for each variable of my vector.
w_out= [212 552 823]
title(['Power Spectrum 544PT: ',string(w_out),' [cm^{-1}]'],'FontSize',18);
I want all the title to be in the same line.
Thanks

採用された回答

Walter Roberson
Walter Roberson 2020 年 11 月 14 日
title( "Power Spectrum 544PT: " + strjoin(string(w_out)) + " [cm^{-1}]", 'FontSize',18);
  1 件のコメント
edoardo amarotti
edoardo amarotti 2020 年 11 月 14 日
THANKS! this is exactly what I was searching for!!!!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by