Map Using Prelookup
R2026bUse previously calculated index and fraction values to accelerate approximation of two-dimensional function
Libraries:
AUTOSAR Blockset /
Classic Platform /
Library Routines /
Interpolation
Description
The Map Using Prelookup block uses the calculated index and fraction values from Prelookup blocks to interpolate a two-dimensional (2-D) lookup table, which represents sampled values of an approximated function. The output of this block is the result of the approximated function using the current inputs.
If you select the AUTOSAR 4.x code replacement library (CRL) for your AUTOSAR model, code generated from this block is replaced with the AUTOSAR library routine that you configure in the block parameters dialog box.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"autosarlibiflifx/Map Using Prelookup"
Example: add_block("autosarlibiflifx/Map Using Prelookup","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

