曝光台 注意防骗
网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者
also be used to display HTML files from other sources. In comparison to the standard
MATLAB WEB command, BROWSE provides a more user-friendly way to handle the
names of the requested helpfile and its source directory.
By default, the standard web browser is used instead of theMATLAB help browser.
One reason for this choice is that early versions of the MATLAB help browser may
have problems with modern web technologies such as Cascading Style Sheets, but
the browser choice in general is mainly a matter of personal preference. To use the
MATLAB help browser instead, an optional argument -mlhelp must be included in
the function call; see the examples below.
BROWSE builds on the WEB command of MATLAB. Depending on your MATLAB
version, WEB may not support browsers other than Netscape 4 or Internet Explorer
version 4 and later. If your browser is not supported, it is recommended to
always use the optional argument -mlhelp when using BROWSE. It is also possible
to change the default browser choice for the function BROWSE by editing the file
BROWSE.M accordingly.
Usage:
browse name or browse(’name’) opens the specified HTML file in the standard web
browser
browse name -mlhelp or browse(’name’,’-mlhelp’) opens the HTML file in the
MATLAB help browser (this switch is functional only for MATLAB release 12 and
later, as earlier MATLAB releases did not yet contain a help browser).
Example:
Consider the helpfile C:\TOOLBOX\HELPFILES\FILENAME.HTML. In order to display
this file in the web browser, the following entries for ’name’ are valid:
• the full path, including the filename and the file-extension:
C:\TOOLBOX\HELPFILES\FILENAME.HTML
• a part of the pathname, including the filename and the file-extension:
HELPFILES\FILENAME.HTML
• the filename and file-extension only: FILENAME.HTML
12.5. Generic helper functions 215
• the full path, including the filename, but excluding the file-extension:
C:\TOOLBOX\HELPFILES\FILENAME
• a part of the pathname, including the filename, but excluding the extension:
HELPFILES\FILENAME
• the filename only, excluding the file-extension: FILENAME
The directory in which the helpfile is located must be present in the MATLAB search
path. An error message will be shown if the specified file cannot be found. Suitable
file-extensions are .htm, .html, .HTM, and .HTML; all other extensions will be disregarded
and will result in a ’file not found’ error, even if the file does exist! For instance,
if a file README.TXT can be read from theMATLAB path, browse(’readme.txt’) will
still yield a ’file not found’ error, because BROWSE will search for README.TXT.HTM
and README.TXT.HTML (both upper and lower-case), not README.TXT.
12.5.2 NEWMSGBOX
The function NEWMSGBOX is an alternative for MATLAB’s MSGBOX function. Like
MSGBOX it displays short messages in a dialog window, but NEWMSGBOX uses a
different default font (improving readability) and it lacks the options to display an
icon, specify the window style, or specify the text-interpreter.
Usage:
newMsgBox(Message) creates a message box that automatically wraps the Messagestring
to fit an appropriately sized dialog window. Message may be a string vector,
string matrix or cell array.
newMsgBox(Message,Title) allows the user to specify the title of the message box.
newMsgBox(Message,Title,Font) allows the user to specify both 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 wrapped in curly
braces):
Font.FontAngle [{ normal } | italic | oblique]
Font.FontUnits [ inches | centimeters | normalized | { points } | pixels | data ]
Font.FontWeight [ light | normal | demi | { bold } ]
Font.FontName requested fontname | { default GUI fontname }
Font.FontSize requested fontsize | { default GUI fontsize }
(The default GUI fontname and fontsize can be observed from the FactoryUIControl-
FontName and FactoryUIControlFontSize screen-properties, respectively; see the MATLAB
documentation for more information.)
12.5.3 NUM2STR2
NUM2STR2 is a variant of MATLAB’s NUM2STR function, which converts numbers
to strings. It differs from NUM2STR in that it allows the user to specify the number
of characters used for the string representation.
216 Chapter 12. Support functions reference
Usage:
T = num2str2(X,C) returns a string T with C characters. X is the number to be converted
to a string. In general, the number of decimal places will be equal to C − 2
(which equals the number of characters minus the space reserved for possible
中国航空网 www.aero.cn
航空翻译 www.aviation.cn
本文链接地址:
FDC 1.4 – A SIMULINK Toolbox for Flight Dynamics and Contro(97)