MATLAB® Import/Export


Description Usage Options See Also

Description

The MATLAB® Import/Export Plugin allows Draco to load and save to MATLAB data files, otherwise known as MAT files. Specifically, this plugin reads and writes level 5 MAT files, which is the default format for most modern MATLAB releases (Release 6 and 7 series). This plugin allows the import of numeric MATLAB arrays only; all other MATLAB object types are not supported. MATLAB is not a prerequesite for use of this feature. This import/export functionality is implemented using the Draco Plugin System.

Usage

The plugin is accessible via the Import or Export submenus in the File Menu.

Export

To generate a MATLAB file from the current worksheet, select the format in the Export submenu in the File Menu. Once the plugin has initialized, a file dialog is presented to select the filename to which data will be written. After selecting a filename, a brief option window will appear to specify output options. After clicking the Close button, the data will be written to the MAT file.

Import

The Import feature operates in much the same way as the Export feature. To import MATLAB data, first select the format from the Import submenu in the File Menu. An option window will appear. Because Draco works with one-dimensional variables only, it may only import either all one-dimensional MATLAB variables or a single MATLAB matrix. Once the option window is closed, the data is imported into Draco.

Options

Both import and export features have options associated with reading and writing MATLAB data. The options are described below:

Export

Name Description
Export as Two options are available:
  • Separate Variables - All Draco variables are written as one-dimensional MATLAB vectors
  • Single Matrix - All Draco variables are written into a single MATLAB matrix
Missing Observations This option specifies how to treat missing observations in Draco variables. While Draco supports missing data, numeric MATLAB does not. A selection of resolutions are presented here, and the best solution for the user's data should be selected.

Import

Name Description
Variable to Import Draco only supports one-dimensional variables, and the user must select the variable or variables to import into the Draco worksheet. All one-dimensional variables can be selected for import. If a two-dimensional variable is necessary, the user may select one (and only one) of the multidimensional variables present in the MATLAB data file.

See Also

Plugin System Overview
Importing External Data


MATLAB is a registered trademark of The MathWorks, Inc.

Copyright © 2009 Approximatrix, LLC
Text licensed under the Creative Commons Attribution-Share Alike 3.0 License
DracoTM and the Approximatrix logo are trademarks of Approximatrix, LLC
Other trademarks are property of their respective owners