• 热门标签

当前位置: 主页 > 航空资料 > 航空制造 >

时间:2011-02-04 12:13来源:蓝天飞行翻译 作者:admin
曝光台 注意防骗 网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者

Usage:
fdcload(’ext’) opens a file browser, listing all files with extension ext that are
present in the data directory, and loads the selected file into the base workspace.
fdcload(’ext’,’datatype’) additionally allows the specification of a short description
of the data type, which will be shown in the title bar of the file browser window
(see for instance figure 12.2, where the specified ’datatype’ description is
’model-definition data’).
In both cases, the user can select a file from the list, or navigate to a different directory
to select a file from elsewhere. It is allowed to use wildcards ? and *, and the fileextension
may have more than three characters. Double extensions are possible too,
e.g. ’ext1.ext2’. In addition, a default filename can be specified by replacing ’ext’
by [filesep ’filename.ext’], where ’filename.ext’ is the required default file.
Notice that there is no initial protection against specifying a non-existing filename;
a warning message will be displayed only when the user actually tries to open a
non-existing file from the load dialog window.
If the selected file does exist, it will be downloaded into the base workspace when
the user clicks the ‘Open’ button. Nothing will happen if the ‘Cancel’ button is
clicked instead or if the load dialog window is closed. Regardless of the specified
extension, the datafile must use the MATLAB file-format (i.e. the format normally
used for MAT-files); FDCLOAD uses the LOAD command with the -mat option. FDCLOAD
does not yet support ASCII datafiles. To change this load behaviour, it will
be necessary to edit the FDCLOAD.M file accordingly.
12.4.2 DATLOAD, LINLOAD, MATLOAD, and TRILOAD
The following default file-extensions are used to store specific types of FDC data:
• DAT-files, used to store model definition data (e.g. aircraft model parameters),
• LIN-files, used to store system matrices of linearized aircraft models,
• TRI-files, used to store trimmed flight conditions.
12.4. Data load functions 213
Figure 12.2: File browser window that is displayed when using DATLOAD
In addition, MAT-files may be used to store general MATLAB data. The functions DATLOAD,
LINLOAD, TRILOAD, and MATLOAD have been designed to simplify the handling
of these datafiles. They each call FDCLOAD for their respective file-extension,
which means that an appropriately configured file-browser will be displayed, allowing
the user to select a file for loading into the base MATLAB workspace.
Usage:
datload will open a file browser, listing all available DAT-files in the FDC datadirectory.
The user must select a file from the list; no default file is specified. It is
still possible to select a different filetype and/or navigate to a different directory,
using the selection options from the file browser.
datload(’fname’) does the same, but pre-selects the file fname.dat. The file, extension,
and directory can be overruled via the file browser.
linload, matload, and triload do the same for LIN-, MAT-, and TRI-files, respectively,
again allowing optional pre-selection of a specific file.
Example:
Figure 12.2 shows the file browser that will be displayed after typing datload at the
command-line.1 In this example, the file AIRCRAFT.DAT has been selected by the user
(and thus highlighted in the file list); this file will be loaded into the base workspace
if the user subsequently clicks on the ‘Open’ button. An almost similar situation
will be seen when typing datload(’aircraft’), except that in that case the filename
AIRCRAFT.DAT will be highlighted in the ’File name’ field, instead of the file-list.
1The figure shows what the file browser will look like on aWindows system. The lay-out will differ
for other operating systems, but the functionality of the file browser will be roughly the same.
214 Chapter 12. Support functions reference
12.5 Generic helper functions
A collection of helper functions assist with other support tasks, such as displaying
on-line help information, screen formatting, string formatting, and showing message
boxes. These helper functions are generic in nature, which means that they may be
re-used for other purposes than the FDC toolbox too.
12.5.1 BROWSE
The function BROWSE displays HTML files using the default web browser or the
MATLAB help browser. It provides a convenient way to implement an on-line help
system for MATLAB toolboxes and SIMULINK blocksets, based on HTML formatting
and linking. Although it was specifically designed to deal with FDC helpfiles, it can
 
中国航空网 www.aero.cn
航空翻译 www.aviation.cn
本文链接地址:FDC 1.4 – A SIMULINK Toolbox for Flight Dynamics and Contro(96)