如何在Matlab(GUI)中更改msgbox字体?

时间:2015-03-09 04:27:54

标签: matlab user-interface

我在Matlab中制作GUI并想知道是否有任何方法可以改变消息框的字体大小?我使用以下命令:

h = msgbox('操作已完成');

我没有使用GUIDE。

谢谢

1 个答案:

答案 0 :(得分:0)

这对我有用(R2015a):

h = msgbox('Operation Completed');
ah = get( h, 'CurrentAxes' );
ch = get( ah, 'Children' );
set(ch, 'FontName', 'Nimbus Roman No9 L');

结果:

enter image description here