FromFile_mat

This block reads in data from a MAT file and then outputs the variables as a constant.

    FromFile_mat

Library

SignalImporters

Parameters

FromFile_mat_0

NameLabelDescriptionData TypeValid 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'
'complex'
'string'
'inherit'

readonlyonce

Read only once

If checked, the file is opened once.

Number

0
1

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
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nVar+1

Port 2

explicit

output

nVar

Port 3

activation

input

externalActivation