Using "classifySound" and generate .Net dll

3 次查看(过去 30 天)

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