MATLAB Answers

How can I change the space between multiline title ?

78 ビュー (過去 30 日間)
Will Fonseca
Will Fonseca 2013 年 1 月 22 日
コメント済み: Mr M. 2018 年 9 月 24 日
Hi,
I have the following title:
h = title({'Frequency vs. Beampattern - GA Array ' ; 'Plane Wave on Cylinder (Free-Field) - \phi_{in}=90^{\circ}'},...
'FontWeight','bold',...
'FontSize',11,...
'FontName','Palatino Linotype');
However, the lines are too close, hence I need some extra line spacing.
Does anyone know how to do it ?
Thanks,
Will

採用された回答

Will Fonseca
Will Fonseca 2013 年 1 月 22 日
編集済み: Will Fonseca 2013 年 1 月 22 日
Solved !
As suggested by Doug in
The complete solution is
tall_str = sprintf(['\\fontsize{14}' blanks(1) '\\fontsize{11}']);
h = title({'Frequency vs. Beampattern - GA Array ' ;...
[tall_str 'Plane Wave on Cylinder (Diffraction+Free-Field) - \phi_{in}=90^{\circ}']},...
'FontWeight','bold',...
'FontSize',11,...
'FontName','Palatino Linotype');
The "tall_str" is a dummy string with a bigger size just to allocate more space.
Cheers,
Will
  1 件のコメント
Mr M.
Mr M. 2018 年 9 月 24 日
But, what if I want to decrease the line space??

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by