验证
将模型与生成的代码的仿真结果进行比较
通过日志记录以及通过将模型仿真与生成的代码的执行结果进行比较,验证生成的代码所计算出的答案是否正确。
主题
- Log Program Execution Results
Log data to a MAT-file during execution of generated code.
- Simulation and Code Comparison
This example shows how to verify the answers computed by code generated from the
slexAircraftExample
model. - Numerical Consistency of Model and Generated Code Simulation Results
Determine whether model and generated code simulation results are numerically consistent. Investigate discrepancies.