Using "classifySound" and generate .Net dll

3 vues (au cours des 30 derniers jours)
Ahmet Klein
Ahmet Klein le 16 Juin 2025
Réponse apportée : Meet le 19 Juin 2025

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.

Réponses (1)

Meet
Meet le 19 Juin 2025
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!!

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by