0

Possible Duplicate:
Interoperating between Matlab and C#

I need to use some functionality from a Dot Net C# managed-dll How can I call this Dot Net C# dll in matlab ?

Community
  • 1
  • 1
Sameh K. Mohamed
  • 2,323
  • 4
  • 29
  • 55

2 Answers2

1

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. see http://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).

Marcus
  • 5,987
  • 3
  • 27
  • 40
0

You could use Matlab's system command and this approach:

Need to run a c# dll from the command line

Community
  • 1
  • 1
Lee
  • 29,398
  • 28
  • 117
  • 170