C++에서 MATLAB 호출하기
C++용 MATLAB Engine API는 C++ 프로그래밍 언어와 MATLAB 간 인터페이스를 제공합니다. 이 API에서 C++ 프로그램은 MATLAB을 시작하고, 인수와 함께 MATLAB 함수를 실행하며, MATLAB과 C++ 프로그램 간에 데이터를 교환할 수 있습니다. 지원되는 연산은 다음과 같습니다.
MATLAB 시작.
로컬 컴퓨터에서 MATLAB 공유 세션에 연결.
C++에서 전달된 입력 인수와 MATLAB에서 반환된 출력 변수를 사용해서 MATLAB 함수 호출.
MATLAB 기본 작업 공간에서 MATLAB 명령문 실행.
C++에서 MATLAB으로 또는 MATLAB에서 C++로 변수 전달.
시작하려면 Set Up C++ Development Environment 항목을 참조하십시오.
C++용 MATLAB Engine API는 C++용 MATLAB Data API를 사용합니다. 이를 통해 MATLAB 외부에서 실행되는 애플리케이션이 언어 중립적인 인터페이스를 사용하여 MATLAB 데이터를 처리할 수 있습니다. Engine API는 또한 MATLAB과 C++ 간에 엄격한 데이터형 매핑을 적용하는 강한 데이터형 지정 인터페이스를 제공합니다. 강한 데이터형 지정 인터페이스를 사용하면 C++에서 MATLAB 이름을 사용하여 MATLAB 함수와 클래스를 네이티브 C++ 함수와 클래스처럼 호출할 수 있습니다. 예제는 Integrate Strongly Typed MATLAB Data in C++ Application 항목을 참조하십시오.
클래스
함수
도움말 항목
요구 사항
- Requirements to Build C++ Engine Applications
Install and configure a compiler and run-time environment so you can build C++ applications to call MATLAB. - Set Up C++ Development Environment
Set up a development environment to write C++ applications that call MATLAB functions.
C++에 MATLAB 코드 통합하기
- Structure of C++ Engine Applications
Get started with the MATLAB Engine API for C++. - Integrate MATLAB Function in C++ Application
Create a C++ engine application using the MATLAB Engine and Data APIs. - Integrate Strongly Typed MATLAB Data in C++ Application
Use strongly typed data with the MATLAB Engine API for C++.
MATLAB을 시작하고 연결하기
- C++에서 MATLAB 세션 시작하기
C++에서 MATLAB 세션을 동기식 또는 비동기식으로 시작하고 연결하는 방법. - Connect C++ to Running MATLAB Session
How to connect a C++ application to a MATLAB session that was started as or converted to a shared session.
MATLAB 함수 호출하기
- C++에서 MATLAB 함수 호출하기
C++에서 MATLAB 함수를 호출하여 MATLAB으로 변수를 전달하고 변수를 C++로 반환하는 방법. - Evaluate MATLAB Statements from C++
How to evaluate MATLAB statements in your C++ program, and write variables to the MATLAB base workspace. - C++에서 MATLAB으로 변수 전달하기
C++에서 MATLAB으로 변수를 함수 인수로 전달하거나, MATLAB 기본 작업 공간에 변수를 바로 넣는 방법. - Pass Variables from MATLAB to C++
How to get variables from the MATLAB base or global workspace. - Redirect MATLAB Command Window Output to C++
How to redirect MATLAB Command Window output, including error messages, to your C++ program. - Convert C++ Engine Application to MATLAB Compiler SDK Application
Convert an engine application to a deployed application using MATLAB Compiler SDK™.
C++에서 MATLAB 데이터형 사용하기
- 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. - Create Structure Arrays from C++
How to create structure arrays in C++ and pass them to MATLAB, or retrieve structure arrays from MATLAB. - Create Cell Arrays from C++
How to create heterogeneous arrays in C++ to use as MATLAB cell arrays. - Pass Enumerations to MATLAB from C++
How to pass members of a MATLAB enumeration class to MATLAB from C++. - Pass Sparse Arrays to MATLAB from C++
How to pass arrays from C++ to MATLAB as MATLAB sparse arrays. - Use MATLAB Handle Classes in C++
Integrate MATLAB handle classes with C++ applications. - Limitations of Strongly Typed Interface for C++
Strongly typed interface for C++ features not supported in MATLAB.