FromFile_mat
This block reads in data from a MAT file and then outputs the variables as a constant.
Library
SignalImporters
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nVar | Number of read variables | Number of variables to be read from the MAT file. Dimensions must be consistent with the dimensions on the Time variable. | Number | |
outports | Output port parameters | Structure | ||
outports/defaultval | Output default value | If the MAT file is not available, the output is the default value. This value also defines the port size. | ||
outports/ot | Datatype | Cell of strings | 'double' | |
readonlyonce | Read only once | If checked, the file is opened once. | 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 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nVar+1 | |
Port 2 | explicit | output | nVar | |
Port 3 | activation | input | externalActivation |