在 MATLAB 中实现查找表
用查找表替换计算密集型函数
使用查找表可以为定点嵌入式设备高效实现计算密集型函数。例如,您可以使用查找表高效地实现对数、正弦、余弦、正切和平方根计算。
主题
- 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.