이 페이지의 최신 내용은 아직 번역되지 않았습니다. 최신 내용은 영문으로 볼 수 있습니다.

C++용 MATLAB Engine API

C++ 프로그램에서 MATLAB® 코드를 실행하며, 객체 지향 프로그래밍과 비동기 실행을 지원합니다.

C++용 MATLAB Engine API는 C++ 프로그래밍 언어와 MATLAB 간 인터페이스를 제공합니다. 이 API에서 C++ 프로그램은 MATLAB을 시작하고, 인수와 함께 MATLAB 함수를 실행하며, MATLAB과 C++ 프로그램 간에 데이터를 교환할 수 있습니다.

C++용 MATLAB Engine API는 MATLAB Data API를 지원합니다. MATLAB 외부에서 실행되는 응용 프로그램이 MATLAB에 종속되지 않는 중립적인 인터페이스를 사용하여 MATLAB 데이터를 처리할 수 있습니다. MATLAB Data API에 대한 자세한 내용은 MATLAB Data API 항목을 참조하십시오.

MATLAB 세션 공유하기

matlab.engine.shareEngine실행 중인 MATLAB 세션을 공유 세션으로 변환

MATLAB 시작하기, 찾기, 연결하기, 종료하기

matlab::engine::connectMATLABConnect to shared MATLAB session synchronously
matlab::engine::connectMATLABAsyncConnect to shared MATLAB session asynchronously
matlab::engine::findMATLABFind shared MATLAB sessions synchronously
matlab::engine::findMATLABAsyncFind shared MATLAB sessions asynchronously
matlab::engine::startMATLABStart MATLAB synchronously
matlab::engine::startMATLABAsyncStart MATLAB asynchronously
matlab::engine::terminateEngineClientFree engine resources during runtime

유형 변환

matlab::engine::convertUTF8StringToUTF16StringConvert UTF-8 string to UTF-16 string
matlab::engine::convertUTF16StringToUTF8StringConvert UTF-16 string to UTF-8 string

유형 정의

matlab::engine::StreamBuffer Define stream buffer
matlab::engine::String Define UTF16 string

클래스

matlab::engine::MATLABEngineEvaluate MATLAB functions from C++ program
matlab::engine::FutureResultRetrieve result from asynchronous operation
matlab::engine::SharedFutureResult Retrieve result from asynchronous operation as shared future
matlab::engine::WorkspaceTypeType of MATLAB workspace

도움말 항목

엔진 응용 프로그램을 설정하고 빌드하기

Introduction to Engine API for C++

Introduction to the basic design of a C++ engine program.

Build C++ Engine Programs

Build engine applications on different platforms.

Test Your Build Environment

Use this sample code to confirm your development environment for the MATLAB Engine API for C++.

C++ Engine API

The MATLAB Engine C++ API comprises functions, classes, and typedefs in matlab::engine namespace.

MATLAB을 시작하고 연결하기

Start MATLAB Sessions from C++

Start and connect to a MATLAB session synchronously and asynchronously from C++.

Connect C++ to Running MATLAB Session

Connect the C++ engine to a MATLAB session that has been started as or converted to a shared session.

함수를 호출하고 데이터를 교환하기

Call MATLAB Functions from C++

Call MATLAB functions from C++, passing variable to MATLAB and returning variables to C++.

Evaluate MATLAB Statements from C++

Evaluate MATLAB expression from C++ and write variables into the MATLAB base workspace.

Pass Variables from C++ to MATLAB

Pass variables from C++ to MATLAB as function arguments or by placing those variables directly in the MATLAB base workspace.

Pass Variables from MATLAB to C++

Get variables from the MATLAB base or global workspace.

Redirect MATLAB Command Window Output to C++

Redirect MATLAB command window output, including error messages, to you C++ program.

Run Simulink Simulation from C++

Run Simulink® model simulations from C++ and visualize the results with MATLAB graphics.

Convert C++ Engine Application to MATLAB Compiler SDK Application

How to convert an engine application to a deployed application using MATLAB Compiler SDK™.

MATLAB 데이터형 만들기

Create Structure Arrays from C++

Create a structure array in C++ and pass it to MATLABor get a structure array defined in MATLAB.

Create Cell Arrays from C++

Create heterogeneous arrays in C++ to use as MATLAB cell arrays.

Pass Enumerations to MATLAB From C++

Pass enumeration members of MATLAB enumeration classes to MATLAB from C++.

Pass Sparse Arrays to MATLAB From C++

Pass arrays to MATLAB as MATLAB sparse arrays.

관련 정보