Main Content
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.
Functions
fixed.interp1 | 1-D data interpolation (table lookup) (Since R2024a) |
fixed.interp2 | Interpolation for 2-D gridded data in meshgrid
format (Since R2024a) |
fixed.interp3 | Interpolation for 3-D gridded data in meshgrid
format (Since R2024a) |
fixed.interpn | Interpolation for 1-D, 2-D, 3-D, and N-D gridded data in
ndgrid format (Since R2024a) |
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.