| Simulink Reference | ![]() |
Perform high-performance constant or linear interpolation, mapping N input values to a sampled representation of a function in N variables via output from PreLookup Index Search block
Library
Description
The Interpolation (n-D) Using PreLookup block uses the precalculated indices and interval fractions from the PreLookup Index Search block to perform the equivalent operation that the Lookup Table (n-D) performs. This combination of blocks allows multiple Interpolation (n-D) blocks to feed a set of PreLookup Index Search blocks. In models that have many interpolation blocks, simulation performance can be greatly increased.
This block supports two interpolation methods: flat (constant) interval lookup and linear interpolation. These operations can be applied to 1-D, 2-D, 3-D, 4-D and higher dimensioned tables.
You define a set of output values as the Table data parameter. These table values must correspond to the breakpoint data sets that are in the PreLookup Index Search block. The block generates its output by interpolating the table values based on the (index, fraction) pairs fed into the block by each PreLookup Index Search block.
The block generates output based on the input values:
The block can perform interpolation on portion of the table. For more information, see "Lookups: Prelookup and Sub-Table Interpolation Blocks" in the "Block Diagramming Features" section of the "Simulink" section on the Demos pane of the MATLAB Help browser.
Data Type Support
The Interpolation (n-D) Using PreLookup block accepts signals of types double or single, but for any given block, the inputs must all be of the same type. The Table data parameter must be of the same type as the inputs. The output data type is set to the Table data data type.
Parameters and Dialog Box
Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Inherited from driving blocks |
| Scalar Expansion |
Yes |
| Zero Crossing |
No |
| Integrator | Interval Test | ![]() |
© 1994-2005 The MathWorks, Inc.