C/C++ Shared Library Integration
Integrate compiled MATLAB® functions into C or
C++ applications
Integrating compiled MATLAB functions into a C or C++ application
requires you to use a combination of APIs. MATLAB Compiler SDK™ uses
APIs to initialize the MATLAB Runtime, load the compiled MATLAB functions
into the MATLAB Runtime, and manage data that is passed between
the C or C++ code and the MATLAB Runtime. The compiler generates
some of the APIs based on the signatures of the compiled functions. MATLAB Runtime provides
other APIs that are consistent for all applications.
To integrate MATLAB functions with your application code
see Call a Shared Library.
Functions
mbuild |
Compile and link source files against MATLAB generated
shared libraries |
C/C++ API
mwArray |
Class used to pass input/output arguments to C functions
generated by MATLAB Compiler SDK |
mwException |
Exception type used by the mwArray API
and the C++ interface functions |
mwString |
String class used by the mwArray API
to pass string data as output from certain methods |