Main Content

Using MEX Functions ThatMATLABCoderGenerates

When you specify MEX for the output (build) type,MATLAB®Coder™generates a binary MATLAB executable (MEX) version of your MATLAB function. You can call the MEX function from MATLAB. SeeCall MEX Functions.

How you use the MEX function depends on your goal.

Goal See
Accelerate your MATLAB function. MATLAB Algorithm Acceleration
Test generated function for functionality and run-time issues. Why Test MEX Functions in MATLAB?
Debug your MEX function. Debug Run-Time Errors