© Sulaymon Eshkabilov 2019
S. EshkabilovBeginning MATLAB and Simulinkhttps://doi.org/10.1007/978-1-4842-5061-7_4

4. MEX Files, C/C++, and Standalone Applications

Sulaymon Eshkabilov1 
(1)
Fargo, United States
 

MEX stands for MATLAB executable and it’s a way to call custom C, C++, or FORTRAN routines/code directly from MATLAB, thereby treating them as if they were MATLAB built-in functions. Since MATLAB is compatible with several programming languages, including C/C++, FORTRAN, C#, and Java, the MEX files can be called exactly like M-files or M-functions within the MATLAB environment. It is also possible to create standalone applications in MATLAB as self-executable files.

MATLAB’s Coder toolbox is very powerful and is capable of creating standalone ...

Get Beginning MATLAB and Simulink: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.