Main Content

Lookup Tables

Lookup table blocks such as Cosine and Sine

Use blocks from the Lookup Tables library to model nonlinearity. 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 manage the lookup tables in your environment, consider using the Lookup Table Editor. Watch How to Use the Lookup Table Editor (5min 9sec).


1-D Lookup TableApproximate one-dimensional function
2-D Lookup TableApproximate two-dimensional function
Direct Lookup Table (n-D)Index into n-dimensional table to retrieve element, vector, or 2-D matrix
Interpolation Using PrelookupUse precalculated index and fraction values to accelerate approximation of N-dimensional function
Lookup Table DynamicApproximate a one-dimensional function using dynamic table
PrelookupCompute index and fraction for Interpolation Using Prelookup block
Sine, CosineImplement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry
n-D Lookup TableApproximate n-dimensional function


lookupTableEditorStart Lookup Table Editor (Since R2022a)


About Lookup Tables

Work with Lookup Tables

Update Lookup Tables from Previous Release