FromMatFile
This block reads in data from a Matfile and then outputs the data as a signal.
Library
SignalImporters
Description
The FromMatFile block reads in data from a Matfile and then outputs the data as a signal.
Then the original signal fed to the ToMatFile can be reconstructed by FromMatFile block.
It is important to note that this block cannot read any MAT file, only MAT file created by ToMatFile can be read.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
fname | File name | Defines the name (path and full name, in between quotes) of the input .mat file. | String | |
timename | Time variable name | Name of the variable in the data structure that contains the time values. If no name is provided, the time variable is not exported. | String | |
nout | Number of outputs | Number of data channels to be read in the MAT file. | Number | |
outports | Output port parameters | Structure | ||
outports/varname | Variable name | Cell of strings | ||
outports/outsize | Output port size | Cell of matrices | ||
outports/ot | Datatype | Cell of strings | 'double' | |
outevent | Generate events at time instants | This parameter defines if the block generates an activation event. When OutEvent is used, a additional event output port is added to the block. default is OFF. | Number | 0 |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
Buffer | Buffer size | Scalar | ||
Method | Interpolation Method | Defines how the data read in is interpolated. Options are "zero order" or "linear". | String | 'Zero-order' |
Leftside | Behavior before the data time span | String | 'Zero' | |
Rightside | Behavior after the data time | String | 'Zero' |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | nout | |
Port 2 | activation | input | externalActivation | |
Port 3 | activation | output | outevent |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | Time Dependency = standard mode activated |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |