Main Content

Lookup Table Optimization

Create, optimize, and compress function lookup tables

Lookup tables are an efficient way to write computationally-intense functions for fixed-point embedded devices. For example, you can efficiently implement logarithm, sine, and square-root using lookup tables. Using the Lookup Table Optimizer app, you can generate memory-efficient lookup tables that approximate functions, subsystems, and blocks. You can also use it to optimize an existing lookup tables to reduce memory usage.

Apps

Lookup Table OptimizerOptimize existing lookup table or approximate function with lookup table

Classes

FunctionApproximation.ProblemObject defining the function to approximate, or the lookup table to optimize
FunctionApproximation.Options Specify additional options to use with FunctionApproximation.Problem object
FunctionApproximation.LUTSolutionOptimized lookup table data or lookup table data approximating a math function
FunctionApproximation.LUTMemoryUsageCalculatorCalculate memory used by lookup table blocks in a system
FunctionApproximation.TransformFunctionObject defining transform function to approximate (Since R2023a)

Objects

LUTCompressionResultOptimized lookup table data for all Lookup Table blocks in a system

Functions

expand all

FunctionApproximation.compressLookupTablesCompress all Lookup Table blocks in a system
fixed.interp11-D data interpolation (table lookup) (Since R2024a)
fixed.interp2Interpolation for 2-D gridded data in meshgrid format (Since R2024a)
fixed.interp3Interpolation for 3-D gridded data in meshgrid format (Since R2024a)
fixed.interpnInterpolation for 1-D, 2-D, 3-D, and N-D gridded data in ndgrid format (Since R2024a)

Topics

Lookup Table Optimizer App Workflow

Lookup Table Optimizer Command-Line Workflow

Prelookup and Interpolation in Simulink

Implement Lookup Tables in MATLAB

Featured Examples