주요 콘텐츠

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

C++ 라이브러리의 함수를 호출하려면 MATLAB® clib 네임스페이스를 사용하십시오.

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

함수

clibArrayCreate MATLAB clib array for C++ library functions
clibConvertArrayConvert MATLAB fundamental or struct array to MATLAB array of C++ objects
clibConfigurationSet run-time configuration parameters for C++ library interface (R2023a 이후)
CLibraryConfigurationC++ library interface environment information (R2023a 이후)
clibIsNullC++ 객체가 null인지 확인
clibIsReadOnlyC++ 객체가 읽기 전용인지 확인
clibReleaseRelease C++ object from MATLAB
underlyingValueUnderlying numeric value for C++ enumeration object created in MATLAB

도움말 항목

C++ 라이브러리 인터페이스 구성하기

MATLAB에서 C++ 라이브러리 사용하기

문제 해결

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.

C/C++ 지원의 제한 사항

MATLAB에서 지원되지 않는 C/C++ 라이브러리 기능.

Handling Exceptions

Using C++ exceptions in MATLAB.

추천 예제