Implement Lookup Tables in MATLAB
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.
- 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.