File Exchange

image thumbnail

Reducing memory footprint of Lookup tables in your design

version 1.0.1 (446 KB) by MathWorks Fixed Point Team
Optimize Lookup tables to reduce memory

1 Download

Updated 27 Mar 2019

View License

In Simulink, you can design control models for your automotive applications including powertrain systems. One key aspect of the powertrain system design is the use of Lookup tables that are also used for calibrating the system for specific requirements such as emissions or fuel consumption etc. In some cases the lookup tables can constitute a large part of your design.

The Lookup Table Optimization in Fixed-Point Designer
• optimizes the spacing of the breakpoints and the data types of the table data to reduce the memory used by a lookup table.
• Using this feature, you can:
o Optimize an existing Lookup Table block.
o Generate a lookup table from a Math Function block.
o Generate a lookup table from a function or function handle.

The download contains the script you can use to programmatically reduce the memory footprint of all the lookup tables in your Simulink model. The script also provides a tradeoff analysis of the memory reduction vs. the tolerances for the output signal of the lookup tables.

Please refer to the following documentation link to learn more about this feature:
Lookup Table optimization:

Link to the video:

Cite As

MathWorks Fixed Point Team (2020). Reducing memory footprint of Lookup tables in your design (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)





Minor update - added helper function

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b to any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags