Main Content

Lookup Tables

R2026b
Blocks that model nonlinearity by mapping input values to output values, such as n-D Lookup Table and 1-D Lookup Table

Use blocks from the Lookup Tables library to model nonlinear behavior. Lookup table blocks use arrays of data to map input values to output values, approximating mathematical functions. To approximate a function in N variables, use the n-D Lookup Table block.

To add blocks from this library to your model, see Add Blocks to Models.

To manage the lookup tables in your environment, consider using the Lookup Table Editor. Watch How to Use the Lookup Table Editor (5min 9sec).

Blocks

1-D Lookup Table block1-D Lookup TableApproximate one-dimensional function
2-D Lookup Table block2-D Lookup TableApproximate two-dimensional function
Direct Lookup Table (n-D) blockDirect Lookup Table (n-D)Index into n-dimensional table to retrieve element, vector, or 2-D matrix
Interpolation Using Prelookup blockInterpolation Using PrelookupUse precalculated index and fraction values to accelerate approximation of N-dimensional function
Lookup Table Dynamic blockLookup Table Dynamic(Not recommended) Approximate a one-dimensional function using dynamic table
Prelookup blockPrelookupCompute index and fraction for Interpolation Using Prelookup block
Sine blockSineImplement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry
n-D Lookup Table blockn-D Lookup TableApproximate n-dimensional function

Tools

Lookup Table EditorCreate, edit, and manage lookup tables in models (Since R2022a)
Library BrowserFind and add blocks to model

Topics

Understand Lookup Tables

Implement Lookup Tables to Approximate Nonlinear Systems

Edit and Visualize Lookup Tables

Update Lookup Tables from Previous Releases

Featured Examples