사전 작성된 MATLAB 인터페이스를 C++ 라이브러리에 사용하기
C++ 라이브러리의 함수를 호출하려면 MATLAB®
clib
네임스페이스를 사용하십시오.C++ 공유 라이브러리에 대해 퍼블리시된 MATLAB 인터페이스가 있는 경우 직접 MATLAB에서 아래 클래스와 함수를 사용하여 MATLAB과 C++ 간에 데이터를 전달할 수 있습니다.
함수
clibArray | Create MATLAB clib array for C++ library functions |
clibConvertArray | Convert MATLAB fundamental or struct array to MATLAB array of C++ objects |
clibConfiguration | Set run-time configuration parameters for C++ library interface (R2023a 이후) |
CLibraryConfiguration | C++ library interface environment information (R2023a 이후) |
clibIsNull | C++ 객체가 null인지 확인 |
clibIsReadOnly | C++ 객체가 읽기 전용인지 확인 |
clibRelease | Release C++ object from MATLAB |
underlyingValue | Underlying numeric value for C++ enumeration object created in MATLAB |
도움말 항목
C++ 라이브러리 인터페이스 구성하기
- Set Run-Time Library Path for C++ Interface
If the C++ library has a compiled library file, then that file and its dependencies must be on your system path or run-time search path (rpath). - Load C++ Library In-Process or Out-of-Process
Execute C++ functions in processes that are the same as or separate from the MATLAB process. - Display Help for MATLAB Interface to C++ Library
Display information about the members of MATLAB interface.
MATLAB에서 C++ 라이브러리 사용하기
- C++ 컴파일 라이브러리에서 함수 호출하기
라이브러리의 함수를 호출하려면 MATLAB
clib
네임스페이스를 사용합니다. - Pass clib.array to C++ Functions
The term clib array is the MATLAB object representation of C++ native arrays andstd::vector
types. - Create MATLAB Array of C++ Objects
CallclibArray
to create MATLAB clib array for C++ library functions. - MATLAB Type to C++ Type Mapping
When you pass MATLAB data as arguments to C++ methods or functions, MATLAB converts the data into types that best represent the data to the C++ language. - C++ Names That Are Invalid in MATLAB
How MATLAB handles C++ names that are invalid MATLAB names. - Use C++ Objects and Functions in parfor Loops
How to take advantage of parallel computing resources using a MATLAB interface to a C++ compiled library.
문제 해결
Troubleshooting MATLAB Interface to C++ Library Run-Time Issues
Resolve unexpected run-time errors when calling functions in a published MATLAB interface to a C++ shared library.
Troubleshooting Calls to C++ Library Functions
Resolve unexpected issues when calling functions in a C++ shared library.
MATLAB에서 지원되지 않는 C/C++ 라이브러리 기능.
Using C++ exceptions in MATLAB.