approximate
从 FunctionApproximation.LUTSolution
生成 Lookup Table 模块或作为 MATLAB 函数的查找表
语法
说明
approximate(
根据 solution
)FunctionApproximation.Options
对象的 ApproximateSolutionType
属性,生成包含由 Lookup Table 模块组成的子系统的 Simulink® 模型,或作为 MATLAB® 函数的查找表。生成的查找表的数据和断点由 FunctionApproximation.LUTSolution
对象 solution
指定。生成的 Lookup Table 模块由 Data Type Conversion 模块包围。
approximate(
生成作为 MATLAB 函数的查找表,生成的 .m 脚本的名称由 solution
,'Name',fileName
)fileName
指定。此选项仅在 FunctionApproximation.Options
的 ApproximateSolutionType
属性设置为 MATLAB
时可用。
approximate(
生成作为 MATLAB 函数的查找表,生成的 .m 脚本的文件路径由 solution
,'Name',fileName
,'Path',filePath
)filePath
指定。此选项仅在 FunctionApproximation.Options
的 ApproximateSolutionType
属性设置为 MATLAB
时可用。
输入参数
示例
版本历史记录
在 R2018a 中推出