Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a program in C# that is working properly: reading in dat.-files, calculating a lot of stuff, giving out correct output files. No problems. I made the static void main() method a public method - and saved it as DLL. Then I loaded the class library into Matlab and tried to call the main function

NET.addAssembly('path');

namespace.Class.Main();

but it didn't work.

Are there any reasons why this CAN'T work? Or is it just an individual problem (to post the whole application would blow the framework here)?
Posted

1 solution

This MathWorks documentation page[^] suggests you have to create a .NET Class Library, in order to consume it in MathLab.
 
Share this answer
 
v2
Comments
Member 11058932 5-Sep-14 2:20am    
Yeah, that's exactly what I've done!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900