MATLAB: Set title in two lines with different font sizes with interpreter latex

title latex fontsize

It is possible to set title in two lines with different font sizes with interpreter latex?
i found an answer how to do that BUT with interpreter tex. for example:
title(['\fontsize{20} Thermometer output signal' char(10) ...
'\fontsize{10} Look small' char(10) ...
'\fontsize{20} Mixed_{\fontsize{8} underscore}'],'interpreter','tex');
this is mine without different font sizes:
TT=title({'$Thermometer\quad output\quad signal$','$EXP02$'},'FontWeight','bold',...
'Interpreter','latex');
thanks

Best Answer

  • title(['\fontsize{12}{0}\selectfont$Large$', char(10), ...
    '\fontsize{8}{0}\selectfont$small$'], ...
    'interpreter','latex');