Main Content


Compare model and generated code simulation results

Verify answers computed by generated code through logging and by comparing model simulation and generated code execution results.


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.