Encapsulate Interface to an External C Library

버전 1.0.0.1 (3.84 KB) 작성자: Stefano Gianoli
Encapsulate Interface to an External C Library with variable size 2D arrays.
다운로드 수: 52
업데이트 날짜: 2019/7/18

라이선스 보기

Encapsulate the Interface to an External C Dynamic Library. This task is described in the Matlab web page:
https://ch.mathworks.com/help/simulink/slref/coder.externaldependency-class.html

However when you try to extend this example to accept more generic input, let's say variable size arrays instead of scalar doubles, it seems necessary to use external routine in order to make it work.
The solution presented not only avoid writing extra source code in C, but allow by minimal change of the source code in Matlab to achieve parameters passage to the encapsulated dll by reference without local copy.

Warning: this example was build with Matlab R2016a. It might no longer compatible to never version of Matlab.

인용 양식

Stefano Gianoli (2024). Encapsulate Interface to an External C Library (https://www.mathworks.com/matlabcentral/fileexchange/59163-encapsulate-interface-to-an-external-c-library), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
R2016a에서 R2018a까지의 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Execution Speed에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.1

Matlab moved the content to a new link "Encapsulate the Interface to an External C Dynamic Library":
https://ch.mathworks.com/help/simulink/slref/coder.externaldependency-class.html

1.0.0.0