Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

MATLAB에서 C 라이브러리

MATLAB®에서C라이브러리함수직접호출

공유 라이브러리는 런타임에 응용 프로그램이 동적으로 불러오는 함수 모음입니다. 이 MATLAB 인터페이스는 C 헤더 파일에 정의된 함수가 속한 라이브러리를 지원합니다. C++ 라이브러리의 함수를 호출하려면MATLAB에서 C++ 라이브러리에 설명되어 있는 인터페이스를 참조하십시오.

함수

loadlibrary C 공유 라이브러리를MATLAB으로 불러오기
unloadlibrary 메모리에서 공유 C 라이브러리 언로드
calllib C 공유 라이브러리의 함수 호출
libfunctions 공유 C 라이브러리의 함수에 대한 정보 반환
libfunctionsview 창에 공유 C 라이브러리의 함수 시그니처 표시
libisloaded 공유 C 라이브러리를 불러왔는지 확인
libpointer 공유 C 라이브러리에 사용할 포인터 객체
libstruct MATLAB구조체를 공유 C 라이브러리에서 사용할 C 형식 구조체로 변환

클래스

lib.pointer C 포인터와 호환되는 포인터 객체(Pointer Object)

문제 해결

Limitations to Shared Library Support

C language features not supported.

Limitations Using Structures

Rules for using C language structures in a shared library.

Loading Library Errors

Errors occur when the shared library is not a valid library.

일치하는 시그니처 없음 오류

이 오류는 올바른 입력 인수나 출력 인수 없이 함수를 호출하거나, 헤더 파일의 함수 시그니처에 오류가 있는 경우 발생합니다.

MATLAB Terminates Unexpectedly When Calling Function in Shared Library

Some shared libraries, compiled as Microsoft®Windows®32-bit libraries, use a calling convention that is incompatible with the default MATLAB calling convention.