Main Content

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

사전 작성된 MATLAB 인터페이스를 C++ 라이브러리에 사용하기

C++ 라이브러리의 함수를 호출하려면 MATLAB® clib 패키지를 사용하십시오.

C++ 공유 라이브러리에 대해 퍼블리시된 MATLAB 인터페이스가 있는 경우 직접 MATLAB에서 아래 클래스와 함수를 사용하여 MATLAB과 C++ 간에 데이터를 전달할 수 있습니다.

함수

clibArrayCreate MATLAB object for C++ array or std::vector
clibConvertArrayConvert numeric array to MATLAB object for C++ array
clibIsNullDetermine if C++ object is null
clibIsReadOnlyDetermine if C++ object is read-only
clibReleaseRelease C++ object from MATLAB
underlyingValueUnderlying numeric value for C++ enumeration object created in MATLAB

도움말 항목

Call Functions in C++ Shared Library

To call a function in the library, use the MATLAB clib package.

Call Functions in Windows Interface to C++ Shared Library

How to call functions in a Windows® interface to the matrixOperations C++ shared library example.

Call Functions in Linux Interface to C++ Shared Library

How to call functions in a Linux® interface to the matrixOperations C++ shared library example.

Display Help for MATLAB Interface to C++ Library

Display package information and method signatures for MATLAB interface.

MATLAB to C++ Data Type Mapping

Correspondence of MATLAB data types to C++ types.

MATLAB Object For C++ Arrays

MATLAB provides an interface, clib.array, which wraps C++ native arrays and std::vector types.

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 using the matlab.lang.makeValidName function.

Set Run-Time Library Path for C++ Interface

If the C++ library has a shared library file, then that file and its dependencies must be on your system path or run-time search path (rpath).

Limitations to C/C++ Support

C/C++ library features not supported in MATLAB.

Handling Exceptions

Using C++ exceptions in MATLAB.