MATLAB Answers

Barinder
0

using C# functions in matlab

Asked by Barinder
on 10 Feb 2012
Latest activity Edited by Matt J
on 12 Oct 2013

Hi, I wanted to use functions from a c# dll in matlab. How would I do this using version 2010a

Thanks Barinder

  0 Comments

Log in to comment.

Tags

2 Answers

Answer by Kaustubha Govind on 13 Feb 2012
Edited by Kaustubha Govind on 19 Nov 2012

Is it a .NET library? If yes, see Using .NET Libraries from MATLAB.

  7 Comments

Sorry, I don't have any experience with .NET assemblies, but you might be able to find something by searching on the web. Does your DLL load a third-party assembly called EZ_B? Looks like that DLL (or one of its depedencies) could not be loaded. You probably need to register all those DLLs also with GAC, or add it to the system path: http://stackoverflow.com/questions/951259/could-not-load-file-or-assembly-or-one-of-its-dependencies-access-is-denied

The suggestion to see "Using .NET Libraries from MATLAB" looked primising, but the link is broken.

Thanks for pointing that out, John! Fixed the link.

Log in to comment.


Answer by Walter Roberson
on 10 Feb 2012

See loadlibrary() . You will need a .h file for the dll .

  0 Comments

Log in to comment.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today