LookupTableND

This block approximates a non-linear function using interpolation on data provided as an "n-dimensional table".

    LookupTableND

Library

LookupTables

Parameters

LookupTableND_0

NameLabelDescriptionData TypeValid Values

nDims

Number of dimensions

Number of dimensions of the lookup table. One dimension corresponds to one input.

Number

dims

Input vectors

Structure

dims/dimi

Input vector for each dimension

A vector indicating input break points for each dimension.

Cell of vectors

ff

Table data

A vector or an n (nDims) dimensional matrix containing data for n-dimensional table.

Method

Interpolation method

Interpolation method. Default: Akima.

String

'Hold'
'Nearest'
'Linear'
'Akima'
'Fritsch_Butland'
'Steffen'

DoOutside

Result outside the table range

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

String

'Hold'
'Linear'
'Zero'
'Error'

derivative

Provide partial derivative vector

If selected, the block provides the partial derivative vector of the table with respect to each dimension. In this case, inputs should be row vector. The directional derivative output will be a matrix of row size nDim and the same column size as inputs.

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

output

1

Port 2

explicit

output

derivative

Port 3

explicit

input

nDims

Port 4

activation

input

externalActivation