使用查找表对非线性进行建模
R2026b借助在定义的点之间进行插值,通过输入-输出映射使用查找表对非线性进行建模
在求解科学和工程问题时,您经常需要对非线性进行建模,其中输入的变化不会产生成正比的输出变化,从而导致稳定性和均衡条件不断变化。Simulink® 提供了一套全面的查找表模块、对象和工具,您可以使用它们来高效地对非线性进行建模。查找表将系统的输入值映射到其输出值,并将映射的数据存储在表中。在实时计算期间,查找表使用存储的数据来查找与系统的不同输入对应的输出。
使用这些查找表模块、对象和工具,您可以:
通过使用查找表逼近数学函数或试验数据,对无状态非线性系统进行建模。
在基于模型的设计工作流中对查找表进行仿真、分析和调节。
优化查找表以平衡内存使用量、执行性能和数值准确性。
为具有行业标准接口的受支持目标语言生成可用于生产的代码。
有关详细信息,请参阅Lookup Table Overview。

模块
| 1-D Lookup Table | 逼近一维函数 | |
| 2-D Lookup Table | 逼近二维函数 | |
| n-D Lookup Table | 逼近 N 维函数 | |
| Direct Lookup Table (n-D) | 为 N 维表进行索引,以检索元素、向量或二维矩阵 | |
| Interpolation Using Prelookup | 使用预先计算的索引和区间比值快速逼近 N 维函数。 | |
| Prelookup | 计算 Interpolation Using Prelookup 模块的索引和区间比 | |
| Sine, Cosine | 通过利用象限波对称性的查找表方法实现定点正弦或余弦波 |
对象
Simulink.LookupTable | Store and share lookup table and breakpoint data, and configure data for ASAP2 and AUTOSAR code generation |
Simulink.Breakpoint | Store and share data for breakpoint set, and configure the data for ASAP2 and AUTOSAR code generation |
Simulink.lookuptable.Evenspacing | Configure evenly spaced breakpoint set for lookup table object |
Simulink.lookuptable.Table | Configure table data for lookup table object |
Simulink.lookuptable.Breakpoint | Configure breakpoint set data for lookup table object |
Simulink.lookuptable.StructTypeInfo | Configure settings for structure type that lookup table object uses in generated code |
工具
| 查找表编辑器 | Create, edit, and manage lookup tables in models (自 R2022a 起) |
主题
了解查找表
- Lookup Table Overview
Learn about the anatomy and characteristics of Lookup Table blocks, objects, and tools. - Configure Lookup Table Block for Logarithmic Operation
Configure an n-D Lookup Table block for logarithmic operation with the common logarithmic base (base 10).
使用查找表逼近非线性系统
- 根据输入、断点和输出数据选择 Lookup Table 模块
选择最适合您应用的 Lookup Table 模块。 - 输入断点和表数据
为查找表指定断点向量和表数据。 - Specify Breakpoint and Table Data with Variable Size and Symbolic Dimensions
Specify breakpoint and table data that changes size during model simulation or represented by symbolic dimensions. - 将数据导入 Lookup Table
从 MATLAB® 工作区和 Excel® 电子表格导入表和断点数据。 - 选择用来逼近函数值的数值方法
设置 Lookup Table 模块逼近函数值的方法。 - Optimize Lookup Tables for Memory-Efficiency (Fixed-Point Designer)
Optimize Lookup Tables using the Lookup Table Optimizer. - Use Row-Major Algorithms for Lookup Table Blocks
Use row-major algorithms for C/C++ code generation from models containing Lookup Table blocks. - Optimize Generated Code for Lookup Table Blocks
Optimize code for Lookup Table blocks.
编辑和可视化查找表
- Edit and Visualize Lookup Table Data
View, add, delete, or update lookup table data.
更新以前版本的查找表
- Update Lookup Table Blocks to New Versions
Update existing models to use current versions of lookup table blocks.







