Accessing C# native Dlls in Matlab

Total Post:4

Points:28
C#
 1491  View(s)
Ratings:
Rate this:
Hi,

I have a C# Dll to perform windows operations like importing project data, showing in tree view and sub catogories and soon..i can see its classes and its method names in workspace using .NET assembly Matlab syntax, but how can i use those methods and call them to do those specific operations from matlab?

Please help me with accessing C# Dll in Matlab.

Thanks.
  1. Post:378

    Points:2694
    Re: Accessing C# native Dlls in Matlab

    Hi Mahesh, 

    One way to make this work is to use COM. You can implement a COM object using .NET, and MatLab can work with COM objects (e.g. seehttp://www.mathworks.co.uk/help/matlab/matlab_external/exploring-your-object.html).

    If your managed C# DLL is not yet  exposed to COM, you may have to write a little wrapper (depending on whether or not you have access to the source code).

      Modified On Apr-09-2018 02:13:38 AM

Answer