C++ MATLAB データ API 共有ライブラリの統合
MATLAB® データ API を使用して、パッケージ化された MATLAB 関数を作成し C++ アプリケーションに統合する
MATLAB データ API を使用する共有ライブラリには、最新の C++ セマンティクスを使用する汎用インターフェイスがあります。このインターフェイスは C++11 の機能をサポートしており、タイプセーフティやマルチスレッドセーフティなどいくつかの点で mwArray
API より優れています。このインターフェイスでは、アプリケーションの初期化と終了を正常に実行するための関数を使用できます。このインターフェイスはプロセス内でもプロセス外でも実行でき、また関数を非同期的に呼び出すことができます。詳細については、C++ 用の MATLAB データ APIを参照してください。
関数
compiler.build.cppSharedLibrary | C++ 共有ライブラリの作成 |
compiler.build.CppSharedLibraryOptions | C++ 共有ライブラリのビルド オプション |
mbuild | Compile and link source files against MATLAB generated shared libraries |
mcc | デプロイする MATLAB 関数のコンパイル |
C/C++ API
matlab::cpplib::initMATLABApplication | Start the MATLAB Runtime and initialize its application state |
matlab::cpplib::runMain | Execute a function with its input arguments within the main function |
matlab::cpplib::convertUTF8StringToUTF16String | Convert UTF-8 string to UTF-16 string |
matlab::cpplib::convertUTF16StringToUTF8String | UTF-16 文字列から UTF-8 文字列への変換 |
matlab::cpplib::initMATLABLibrary | Initialize a library of MATLAB functions packaged in a deployable archive file |
matlab::cpplib::initMATLABLibraryAsync | Initialize a library of MATLAB function asynchronously |
matlab::cpplib::MATLABLibrary::feval | Execute a MATLAB function from a deployable archive |
matlab::cpplib::MATLABLibrary::fevalAsync | Execute a MATLAB function from a deployable archive asynchronously |
matlab::cpplib::MATLABLibrary::waitForFiguresToClose | すべての Figure が閉じるまで待機する |
トピック
C++ MATLAB データ配列 API 共有ライブラリの作成と実装
- C++ MATLAB データ API 共有ライブラリの生成と C++ アプリケーションのビルド
MATLAB コードから C++ MATLAB データ API 共有ライブラリを作成し、サンプル C++ ドライバー コードを使って統合する。 - Create C/C++ Shared Libraries from Command Line
Use the command-line compiler to create C/C++ shared libraries.
C++ 共有ライブラリと C++ アプリケーションの統合
- Integrate C++ Shared Libraries with MATLAB Data API
Write C++ code to reference shared libraries that use the MATLAB Data API. - Call MATLAB Compiler SDK API Functions from C/C++
Use MATLAB Compiler SDK™ shared library functions in C and C++ code. - Configure the mbuild Options File
How to configure thembuild
options file.
macOS
- Write Applications for macOS
Write deployable C++ applications specifically for macOS.
厳密に型指定されたインターフェイス
- C++ MATLAB Data API Shared Library Support for Strongly Typed MATLAB Code
Learn how a C++ MATLAB Data API shared library supports using strongly typed MATLAB code. - Create C++ MATLAB Data API Shared Library Header from Strongly Typed MATLAB Function
Create a C++ MATLAB Data API shared library from a strongly typed MATLAB function and integrate it with sample C++ application code. - Create C++ MATLAB Data API Shared Library Header from Strongly Typed MATLAB Classes Contained in Package
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. - Data Type Mappings Between C++ and Strongly Typed MATLAB Code
Refer to data type mappings between C++ and MATLAB when using strongly typed MATLAB code.
保守
- Memory Management and Cleanup
See recommendations on memory management. - Understand the mclmcrrt Proxy Layer
All application and software components generated by MATLAB Compiler™ and MATLAB Compiler SDK need to link against only one MATLAB library,mclmcrrt
. This library provides a proxy API for all the public functions in MATLAB libraries used for matrix operations, MAT-file access, utility and memory management, and application MATLAB Runtime. Themclmcrrt
library lies between deployed MATLAB code and these other version-dependent libraries, providing the following functionality: - Troubleshoot mbuild
Issues involving thembuild
utility and creating standalone applications.