주요 콘텐츠

Checking for Run-Time Issues

Check for run-time issues by generating trial MEX function before generating production code

To check that your MATLAB® code produces generated code that works as expected, generate and execute a MEX function, which is executable and testable in the MATLAB environment. This step enables you to detect and fix run-time errors that are more difficult to diagnose in the generated production code. You can also verify that the generated code provides the same functionality as your original MATLAB function.

Functions

coder.runTestRun test replacing calls to MATLAB functions with calls to MEX functions

Topics

Generating Trial MEX Function

Debugging

Troubleshooting