LookupTable2D

This block approximates a non-linear function using interpolation on data provided as a "2D-table".

    LookupTable2D

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

LookupTable2D_0

NameLabelDescriptionData TypeValid 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

Interpolation method. Default: bilinear interpolation.

String

'Bilinear
interpolation'
'Nearest_point'
'Point_just_below'
'Point_just_above'

DoOutside

Result outside the table range

Action to be taken with the result outside of the table range.

String

'Zero'
'Hold'
'Bilinear
extrapolation'

EventGen

Apply zero crossings

Enable this parameter to detect the zero crossings. Default is on.

Scalar

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

output

1

r

explicit

input

1

c

explicit

input

2

Port 4

activation

input

externalActivation

Advanced Properties

NameValueDescription

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

See Also