Curve Using Prelookup
R2026bUse previously calculated index and fraction values to accelerate approximation of one-dimensional function
Libraries:
AUTOSAR Blockset /
Classic Platform /
Library Routines /
Interpolation
Description
The Curve Using Prelookup block uses the calculated index and fraction values from a Prelookup block to interpolate a one-dimensional (1-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.
The Prelookup and Curve Using Prelookup blocks have distributed algorithms that, when used together, perform the same algorithm operation as the Curve block. By using the Prelookup and Curve Using Prelookup blocks together you have greater flexibility and more efficient simulation and code generation than when just using the Curve block.
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/Curve Using Prelookup"
Example: add_block("autosarlibiflifx/Curve 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.
Extended Capabilities
Version History
Introduced in R2019aSee Also
Curve | Map | Map Using Prelookup | Cuboid Using Prelookup | Prelookup

