using C# functions in matlab
이전 댓글 표시
Hi, I wanted to use functions from a c# dll in matlab. How would I do this using version 2010a
Thanks Barinder
답변 (2개)
Kaustubha Govind
2012년 2월 13일
편집: Kaustubha Govind
2012년 11월 19일
2 개 추천
댓글 수: 7
Friedrich
2012년 2월 13일
Right, for .NET MATLAB has a different API. The command to start with is NET.addAssembly.
Barinder
2012년 2월 13일
Kaustubha Govind
2012년 2월 14일
See http://msdn.microsoft.com/en-us/library/dkkx7f79(vs.71).aspx
Barinder
2012년 2월 14일
Kaustubha Govind
2012년 2월 14일
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
2012년 11월 15일
The suggestion to see "Using .NET Libraries from MATLAB" looked primising, but the link is broken.
Kaustubha Govind
2012년 11월 19일
Thanks for pointing that out, John! Fixed the link.
Walter Roberson
2012년 2월 10일
0 개 추천
See loadlibrary() . You will need a .h file for the dll .
카테고리
도움말 센터 및 File Exchange에서 Get Started with Microsoft .NET에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!