MATLAB: Load a mtalb compiled dll in matlb

dllMATLAB Compiler

Hello, I would like to load a matlab compiled dll in my matlab code. I have tried using a .NET compiled dll (using add assembly) and a C lib compiled dll (using loadlibrary). Any thoughts how I can run a matlab compiled dll inside matlab? Thanks!

Best Answer

You can't, Loading a MATLAB compiled application directly into MATLAB is deliberately prevented.
Quote from loadlibrary limitations section of documentation: "loadlibrary does not support libraries generated by the MATLAB Compilerâ„¢ product."