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 lookup table, math function, 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, select Analysis > Data Type Design > Lookup Table Optimizer