Using "classifySound" and generate .Net dll

조회 수: 3 (최근 30일)
Ahmet Klein
Ahmet Klein 2025년 6월 16일
답변: Meet 2025년 6월 19일

I wrote a Matlab function which takes a 'wav' file and classify it using 'classifySound'. It works well on the Matlab.Then I've generated a .Net dll in order to integrate this function to a.Net environment. Although I have installed the corresponding Matlab Runtime Environment I could not run the .dll and got error that mentions 'classifySound' function cannot found.

답변 (1개)

Meet
Meet 2025년 6월 19일
Hi Ahmet,
You could follow the below troubleshooting steps in order to resolve the issue:
  1. When using MATLAB Compiler SDK, all dependent MATLAB files (including "classifySound.m") must be included, otherwise, they won't be packaged into the ".dll" and thus would not be visible at runtime.
  2. Try running the application as an administrator on the target machine to rule out permission issues. Also, verify that no antivirus or security software on the target machine is blocking the DLL.
  3. Use tools like Dependencies (Open source rewrite of dependency walker) to ensure all dependencies of your DLL, including indirect ones, are present on the target machine. (https://github.com/lucasg/Dependencies)
Hope this helps resolve the issue!!

카테고리

Help CenterFile Exchange에서 Get Started with Microsoft .NET에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by