使用查找表逼近函数
在 Simulink® 中创建并优化函数查找表
使用查找表优化器,您可以生成用于逼近函数、子系统和模块的节省内存的查找表。您还可以用它优化现有的 Lookup Table 模块。
App
查找表优化器 | Optimize existing lookup table or approximate function with lookup table |
类
FunctionApproximation.Problem | Object defining the function to approximate, or the lookup table to optimize |
FunctionApproximation.Options | Specify additional options to use with
FunctionApproximation.Problem object |
FunctionApproximation.LUTSolution | Optimized lookup table data or lookup table data approximating a math function |
FunctionApproximation.LUTMemoryUsageCalculator | Calculate memory used by lookup table blocks in a system |
FunctionApproximation.TransformFunction | Object defining transform function to approximate (自 R2023a 起) |
对象
LUTCompressionResult | Optimized lookup table data for all Lookup Table blocks in a system (自 R2020a 起) |
函数
FunctionApproximation.compressLookupTables | Compress all Lookup Table blocks in a system (自 R2020a 起) |
coder.approximation | Create function replacement configuration object |
DataTypeWorkflow.findDecoupledSubsystems | Get a list of subsystems to replace with an approximation |
主题
- Optimize Lookup Tables for Memory-Efficiency
Optimize Lookup Tables using the Lookup Table Optimizer.
- Optimize Lookup Tables for Memory-Efficiency Programmatically
Optimize an existing lookup table, generate a lookup table from a Math Function block or function handle.
- Generate an Optimized Lookup Table as a MATLAB Function
Use the Lookup Table Optimizer to generate a lookup table as a MATLAB® function.
- Generate an Optimized Lookup Table as a MATLAB Function Programmatically
Programmatically generate an optimized lookup table as a MATLAB function.
- Approximate Functions with a Direct Lookup Table
Generate direct lookup table approximations of functions or blocks.
- Replace Functions in a MATLAB Function Block with a Lookup Table
Automatically replace functions in a MATLAB Function Block with a lookup table replacement.
- Convert Floating-Point Model to Fixed Point
Use the Fixed-Point Tool to convert a floating-point model to fixed point.