Prelookup and Interpolation Blocks
The following examples show the benefits of using Prelookup and Interpolation Using Prelookup blocks.
Use an index search to relate inputs to table data, followed by an interpolation and extrapolation stage that computes outputs
Enables reuse of index search results to look up data in multiple tables, which reduces simulation time
For more information, see Using the Prelookup and Interpolation Blocks.
Set breakpoint and table data types explicitly
Lowers memory required to store:
For more information, see Saving Memory in Prelookup and Interpolation Blocks by Using Smaller Data.
Provides easier sharing of:
For more information, see Sharing Parameters in Prelookup and Interpolation Blocks (Fixed-Point Designer).
Enables reuse of utility functions in the generated code
For more information, see Shared Utility Functions for Prelookup Blocks (Fixed-Point Designer).
Set the data type for intermediate results explicitly
Enables use of higher precision for internal computations than for table data or output data
For more information, see High Precision Calculations in Interpolation Block (Fixed-Point Designer).
Prelookup | Interpolation Using Prelookup