LookupTableND_file
This block approximates a non-linear function using interpolation on data provided as an "n-dimensional table" the data is read from a .mat file.
Library
Activate/LookupTables
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 | |
nDims | Number of dimensions | Number of dimensions of the lookup table. One dimension corresponds to one input. | Number | |
varnames | Scale variable names | Structure | ||
varnames/name | Name of the scale variable | Name of scale variable. | Cell of strings | |
table_name | Name of the table data variable | Name of the second scale variable. | String | |
Method | Interpolation method | Interpolation method. Default: Akima. | String | 'ZeroOrder(floor)' |
DoOutside | Result outside the table range | Action to be taken with the results outside of the table range. | String | 'Hold' |
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 | output | 1 | |
Port 2 | explicit | input | nDims | |
Port 3 | activation | input | externalActivation |