How to insert the whole vector in the title?
6 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Walter Roberson
2020-11-14
title( "Power Spectrum 544PT: " + strjoin(string(w_out)) + " [cm^{-1}]", 'FontSize',18);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!