MATLAB: How to change the font size of text in the mask icon using Mask Drawing commands

dispdrawingfontfontsizemasksimulinksize;tex

I would like to change the font size of text in my mask icon with Mask Drawing commands such as DISP.

Best Answer

You can change the font size of text in a mask icon with mask drawing commands and TeX formatting.
For example, in the Icon pane of the Mask Editor, you may use the following code in the Mask Drawing field:
disp('{\bf\fontsize{12}Label Text}', 'texmode','on');