How to open .dll file in MATLAB?

조회 수: 39 (최근 30일)
palak
palak 2022년 11월 17일
답변: Bala Tripura Bodapati 2022년 11월 21일
I am working on project which is based on C# in visual studio. I have some .dll file in project that i want to import and use .dll API in MATLAB.
Please can you guide me how can I import .dll in MATLAB and use API?
Thank you.

답변 (1개)

Bala Tripura Bodapati
Bala Tripura Bodapati 2022년 11월 21일
Hi Palak
It is my understanding that you would like to import a 'DLL' file created from C# in MATLAB.
You can use the 'NET.addAssembly' function to load the .dll file.
The following code illustrates the usage of the 'NET.addAssembly' function:
info = NET.addAssembly('full path to .dll file');
Refer the addAssembly documentation for more information.

카테고리

Help CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by