Matlab Compiler User's Guide
This book describes version 1.2 of the MATLAB Compiler. The MATLAB Compiler takes M-files as input and generates C or C++ source code as output. The MATLAB Compiler can generate these kinds of source code:
C source code for building MEX-files.
C or C++ source code for combining with other modules to form stand-alone external applications. Stand-alone external applications do not require MATLAB at runtime; they can run even if MATLAB is not installed on the system. The MATLAB Compiler does require the C/C++ Math Libraries to create stand-alone, external applications that rely on the core math and data analysis capabilities of MATLAB.
C code S-functions for use with Simulink and Real-time Workshop
The MATLAB Compiler ( mcc ) can translate M-files into C MEX-file source code. By default, the MATLAB Compiler then invokes the mex utility, which builds the C MEX-file source code into a MEX-file. The MATLAB interpreter dynamically loads MEX-files as they are needed. Some MEX-files run significantly faster than their M-file equivalents; in the end of this chapter we explain why this is so.
f you do not have the MATLAB Compiler, you must write the source code for MEX-files "by hand" in either Fortran or C. The Application Program Interface Guide explains the fundamentals of this process. To write MEX-files by hand, you have to know how MATLAB represents its supported data types and the MATLAB external interface (i.e., the application program interface)
Source: amath.colorado.edu
Related PDF Files
Comments for Matlab Compiler User's Guide