Simulink: How to display bold text in mask using disp()

When editing the Matlab/Simulink mask code, you can display bold text by using disp() with LaTeX commands and texmode = on.

Displaying just bold text

When using texmode, you can use {\bf ...} to format text as bold.

disp("{\bfTest text}", 'texmode', 'on')

Simulink Mask bold text

Mixing bold with normal text

disp("This is{\bf test} text", 'texmode', 'on')

Simulink Mask bold mixed text

Also see: