Implement Lookup Tables in MATLAB

Replace computationally-intense functions with 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, cosine, tangent, and square-root using lookup tables.

Topics

Replace the exp Function with a Lookup Table

Replace a function with a lookup table approximation in fixed-point code generated with the Fixed-Point Converter app.

Replace a Custom Function with a Lookup Table

Replace a custom function with a lookup table approximation function by using the Fixed-Point Converter app.

Featured Examples