Optimize an existing lookup table or approximate a function with a lookup table
Use the Lookup Table Optimizer to obtain an optimized (memory-efficient) lookup table that approximates an existing Simulink® block, including Subsystem blocks and math function blocks, or a function handle. 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.
In a Simulink model, on the Apps tab, click the arrow on the far right of the Apps section. In the Code Generation gallery, click Lookup Table Optimizer.
In a Simulink model with a Lookup Table block, select the Lookup Table block, in the Lookup Table tab, select Lookup Table Optimizer.