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.

    LookupTableND_file

Library

Activate/LookupTables

Parameters

LookupTableND_file_0

NameLabelDescriptionData TypeValid 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)'
'ZeroOrder(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'

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

input

nDims

Port 3

activation

input

externalActivation