Main Content

Lookup Table Optimizer

Optimize an existing lookup table or approximate a function with a lookup table

Description

Use theLookup Table Optimizerto obtain an optimized (memory-efficient) lookup table that approximates an existing Simulink®块,包括Subsystemblocks and math function blocks, or a function handle. You can choose to return the optimized lookup table as a Simulink block or as a MATLAB®function. The optimizer supports any combination of floating-point and fixed-point data types. The original input and output data types can be kept or changed as desired. To minimize memory used, the optimizer selects the data types of breakpoints and table data, as well as the number and spacing of breakpoints.

Open the Lookup Table Optimizer App

  • In a Simulink model, on theAppstab, click the arrow on the far right of theAppssection. In theCode Generation画廊,点击Lookup Table Optimizer.

  • In a Simulink model with aLookup Tableblock, select theLookup Tableblock, in theLookup Tabletab, selectLookup Table Optimizer.

Introduced in R2018a