Shared libraries that use the MATLAB Data API have a generic interface that uses modern C++ semantics.
The interface supports C++11 functionality and has several advantages over the
mwArray API, including type-safety and
multithread-safety. The interface provides functions that ensure correct
initialization and termination of applications. It can be run either in-process
or out-of-process and can call functions asynchronously. For details, see MATLAB Data API.
|Start the MATLAB Runtime and initialize its application state|
|Execute a function with its input arguments within the main function|
|Convert UTF-8 string to UTF-16 string|
|Convert UTF-16 string to UTF-8 string|
|Initialize a library of MATLAB functions packaged in a deployable archive file|
|Initialize a library of MATLAB function asynchronously|
|Execute a MATLAB function from a deployable archive|
|Execute a MATLAB function from a deployable archive asynchronously|
|Wait for all figures to close|
Workflow to integrate with a C++ shared library that uses the MATLAB Data API.
Create a C++ MATLAB Data API shared library from MATLAB code and implement it with sample C++ driver code.
Guidelines on writing C++ driver code using the generic interface for integration with C++ shared libraries that use the MATLAB Data API.
How to configure the
mbuild options file.
Write deployable C++ applications specifically for macOS.
Learn how a C++ MATLAB Data API shared library supports using strongly typed MATLAB code.
Create a C++ MATLAB Data API shared library from a strongly typed MATLAB function and integrate it with sample C++ application code.
Create a C++ MATLAB Data API shared library from strongly typed MATLAB class contained in a package and integrate it with sample C++ application code.
Refer to data type mappings between C++ and MATLAB when using strongly typed MATLAB code.
Install, configure, and uninstall MATLAB Runtime.
Define paths for machines where you want to run applications generated with MATLAB Compiler™ or MATLAB Compiler SDK™.
Set MATLAB Runtime options, such as
Override the default archive embedding behavior, and use MATLAB Runtime component cache.