Implementieren von Lookup-Tabellen in MATLAB
Ersetzen rechnerisch aufwändiger Funktionen durch Lookup-Tabellen
Lookup-Tabellen sind eine effiziente Methode, rechnerisch aufwändige Funktionen für Embedded-Geräte mit Festkomma zu schreiben. Beispielsweise können Sie mithilfe von Lookup-Tabellen effizient Logarithmus, Sinus, Cosinus, Tangente und Quadratwurzel implementieren.
Funktionen
fixed.interp1 | 1-D data interpolation (table lookup) (Seit R2024a) |
fixed.interp2 | Interpolation for 2-D gridded data in meshgrid
format (Seit R2024a) |
fixed.interp3 | Interpolation for 3-D gridded data in meshgrid
format (Seit R2024a) |
fixed.interpn | Interpolation for 1-D, 2-D, 3-D, and N-D gridded data in
ndgrid format (Seit R2024a) |
Themen
- Replace the exp Function with a Lookup Table
Replace a function with a lookup table approximation in fixed-point code generated with the
fiaccelfunction. - Replace a Custom Function with a Lookup Table
Replace a custom function with a lookup table approximation function by using the
fiaccelfunction.


