MATLAB 中的手动定点转换
使用 buildInstrumentedMex
函数来对算法进行插桩,以记录所有命名变量和中间变量的最小值和最大值。使用 showInstrumentationResults
函数根据这些记录的值建议定点数据类型。
函数
主题
- Fixed-Point Conversion Workflows
Learn which fixed-point conversion method best matches your end goal and your level of fixed-point expertise.
- Decide Which Workflow Is Right for Your Application
Learn the benefits of each conversion workflow to help you decide which one best fits your needs.
- Manual Fixed-Point Conversion Workflow
Learn about workflow for manual float-to-fixed conversion.
- Manual Fixed-Point Conversion Best Practices
Get from generic MATLAB® code to an efficient fixed-point implementation using manual fixed-point conversion.
- 手动将浮点 MATLAB 算法转换为定点
将浮点型 MATLAB 算法手动转换为定点类型。
- Know When a Function Is Supported for Instrumentation and Acceleration
Determine which functions are supported for fixed-point conversion.
相关信息
疑难解答
Resolve Error: Function Is Not Supported for Fixed-Point Conversion
Troubleshoot functions that are not supported for fixed-point conversion.
fi*
非 fi
错误故障排除。
对数据类型不匹配错误进行故障排除。
Resolve Error: Mismatched fimath
Troubleshoot mismatched fimath
errors.