LookupTable2D
This block approximates a non-linear function using interpolation on data provided as a "2D-table".
Library
LookupTables
Description
The LookupTable2D block approximates a non-linear function using interpolation on data provided as a "2D-table". This is bi-dimensional and the table is then defined by specifying two vectors (x and y) of size m and n, and a "2D-table", a matrix of size m*n. Output of the block is the approximation of the block input using the selected interpolation method.
Each input can be either scalar, vector or matrix.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
xx | Row index input values | Vector of length m. | Vector | |
yy | Column index input values | Vector of length n. | Vector | |
zz | Table data | Matrix of size m x n. | Matrix | |
Method | Interpolation method | String | 'Bilinear | |
DoOutside | Result outside the table range | String | 'Zero' | |
EventGen | Apply zero crossings | Scalar | 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 | output | 1 | |
r | explicit | input | 1 | |
c | explicit | input | 2 | |
Port 4 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | yes | Depends on block parameters |
direct-feedthrough | yes | |
zero crossing | no | Depends on block parameters. |
mode | no | |
continuous-time state | no | |
discrete-time state | no |