using C# functions in matlab
Mostra commenti meno recenti
Hi, I wanted to use functions from a c# dll in matlab. How would I do this using version 2010a
Thanks Barinder
Risposte (2)
Kaustubha Govind
il 13 Feb 2012
Modificato: Kaustubha Govind
il 19 Nov 2012
2 voti
7 Commenti
Friedrich
il 13 Feb 2012
Right, for .NET MATLAB has a different API. The command to start with is NET.addAssembly.
Barinder
il 13 Feb 2012
Kaustubha Govind
il 14 Feb 2012
See http://msdn.microsoft.com/en-us/library/dkkx7f79(vs.71).aspx
Barinder
il 14 Feb 2012
Kaustubha Govind
il 14 Feb 2012
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
John
il 15 Nov 2012
The suggestion to see "Using .NET Libraries from MATLAB" looked primising, but the link is broken.
Kaustubha Govind
il 19 Nov 2012
Thanks for pointing that out, John! Fixed the link.
Walter Roberson
il 10 Feb 2012
0 voti
See loadlibrary() . You will need a .h file for the dll .
Categorie
Scopri di più su Get Started with Microsoft .NET in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!