📄 newmsgbox.htm
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="fdchelp.css">
<title>
FDC help: message-box utility newMsgBox
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#DDDDDD"><div>
<h2>
Message box utility <i>newMsgBox</i>
</h2>
<p>The <i>newMsgBox</i> function is an alternative for the standard <i>MSGBOX</i> command in Matlab, which displays short messages in a dialog window. Although this function provides less control than <i>MSGBOX</i>, it improves the readability of the messages a little.</p>
<h3>Usage</h3>
<p><code>newMsgBox(Message)</code> creates a message box that automatically wraps <i>Message</i> to fit an appropriately sized dialog window. <i>Message</i> is a string vector, string matrix or cell array.</p>
<p><code>newMsgBox(Message,Title)</code> specifies the title of the message box.</p>
<p><code>newMsgBox(Message,Title,Font)</code> specifies the title and the font-settings for the message box. Font is a structure that contains the font-definitions. Valid fields are (default values for newMsgBox are displayed in curly braces):</p>
<pre>
Font.FontAngle [{normal} |italic | oblique]
Font.FontUnits [inches | centimeters | normalized |
| {points} | pixels | data]
Font.FontWeight [light | normal | demi | {bold}]
Font.FontName requested fontname {FactoryUIControlFontName}
Font.FontSize requested fontsize {FactoryUIControlFontSize}
</pre>
<p>Contrary to <i>MSGBOX</i>, it is not possible to specify an icon. It is also not possible to specify the window style and interpreter; use <i>MSBOX</i> if those options are required.</p>
</div></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -