- Package: MatlabInterface
- Catagory: DataIO
- Author(s): Jeroen Stinstra
- Status: Supported in latest version
- Version: 3.0
The ImportMatricesFromMatlab module reads a matrix from a MATLAB file
This module imports matrices from MATLAB .mat files. Currently only files from matlab version 5 and higher are supported by this module. The module reads both dense and sparse matrices of any of the supported data classes in matlab (short, int, double, etc.). Currently the SCIRun matrix class only supports doubles, hence every matrix is casted into a double matrix. In order to facilitate the selection process the module will list all matrices in the file that are compatible with the SCIRun matrix class and will select the most obvious one as a default.
Follow the next two steps in order to setup the GUI properly: Choose the MATLAB file that contains the matrix data. You can either use the BROWSE button to select a file or enter the filename in the filename entry on top of the GUI and press the OPEN button to list the contents of the file in the listbox in the center of the GUI.
Next the MATLAB matrices in the file need to be connected to an output port. In order to do this click on one of the PORT buttons and then select the MATLAB matrix you want to load on that outport. Note that for convenience the first suitable matrix in the file is automatically connected to port 1, when a MATLAB file is opened. Hence, if your file only contains one field, you can skip this step as the matrix will be selected automatically.