이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
사전 작성된 MATLAB 인터페이스를 C++ 라이브러리에 사용하기
clib
패키지를 사용하십시오.C++ 공유 라이브러리에 대해 퍼블리시된 MATLAB 인터페이스가 있는 경우 직접 MATLAB에서 아래 클래스와 함수를 사용하여 MATLAB과 C++ 간에 데이터를 전달할 수 있습니다.
함수
clibArray | Create MATLAB clib array for C++ library functions (R2020a 이후) |
clibConvertArray | Convert numeric MATLAB array to array of C++ objects (R2020a 이후) |
clibConfiguration | Change execution mode of C++ library interface (R2023a 이후) |
CLibraryConfiguration | C++ library interface environment information (R2023a 이후) |
clibIsNull | C++ 객체가 null인지 확인 (R2019b 이후) |
clibIsReadOnly | C++ 객체가 읽기 전용인지 확인 (R2019b 이후) |
clibRelease | Release C++ object from MATLAB (R2019a 이후) |
underlyingValue | Underlying numeric value for C++ enumeration object created in MATLAB (R2019a 이후) |
도움말 항목
- C++ 컴파일 라이브러리에서 함수 호출하기
라이브러리의 함수를 호출하려면 MATLAB
clib
패키지를 사용합니다. - C++ 컴파일 라이브러리에 대한 Windows 인터페이스에서 함수 호출하기
matrixOperations
C++ 컴파일 라이브러리에 대한 Windows® 인터페이스에서 함수를 호출하는 방법을 설명하는 예제. - C++ 컴파일 라이브러리에 대한 Linux 인터페이스에서 함수 호출하기
matrixOperations
C++ 컴파일 라이브러리에 대한 Linux® 인터페이스에서 함수를 호출하는 방법을 설명하는 예제. - 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 separate from the MATLAB process.
- Display Help for MATLAB Interface to C++ Library
Display package information and method signatures for MATLAB interface.
- MATLAB Object for C++ Arrays
MATLAB provides the
clib.array
interface to wrap C++ native arrays andstd::vector
types. - C++ Language Opaque Objects
How MATLAB handles opaque objects.
- C++ Names That Are Invalid in MATLAB
MATLAB automatically renames classes, member functions, non-member functions, and enumerations with C++ names that are invalid in MATLAB by using the
matlab.lang.makeValidName
function. - Use Function Type Arguments
How to pass function type arguments to C++ functions.
- Use Function and Member Function Templates
How to call and customize names of functions derived from C++ templates.
- 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.
- Limitations to C/C++ Support
C/C++ library features not supported in MATLAB.
- Handling Exceptions
Using C++ exceptions in MATLAB.
문제 해결
Troubleshooting MATLAB Interface to C++ Library Issues
MATLAB searches for the library interface file on the MATLAB path.