Accelerate computationally intensive portions of your MATLAB® code by generating a MEX function. For best results, follow best practices and use optimization strategies.
|Generate C/C++ code from MATLAB code|
Follow workflow for accelerating MATLAB algorithms.
Accelerate MATLAB algorithms by generating MEX functions.
Follow the workflow for generating MEX functions with the MATLAB Coder™ app.
Follow the workflow for generating MEX functions with
Follow best practices for using MEX functions to accelerate MATLAB algorithms.
See execution times and code coverage for generated MEX functions in MATLAB Profiler.
Improve performance by disabling run-time checks.
Optimize the execution speed or memory usage of generated code.
Use MATLAB Coder to accelerate an algorithm used by an application that you intend to deploy with MATLAB Compiler™.