注:所用matlab为R2021a。
警告对话框字体太小,想调大字体怎么办?
(字体很小)
这是最初的代码:
errordlg('Please set L/S data adress first!','Missing adress')
添加属性及设置字体大小:
%前者为设置模态框,标记tex后即可添加各种修饰符
opts = struct('WindowStyle','modal','Interpreter','tex');
%\fontsize{15},调整字体大小修饰符
errordlg('\fontsize{15} Please set L/S data adress first!','Missing adress',opts)
效果:
其他修饰符
以下为修饰符总表:
修饰符 | 说明 | 示例 |
---|---|---|
^{ } |
上标 | 'text^{super |