필터 지우기
필터 지우기

How to insert the whole vector in the title?

조회 수: 6 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by