Click here to Skip to main content
15,889,369 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have made a .dll from a MATLAB function (.m file).
The function looks like this:
[a (double)] = fname(b (integer array), c (double array), d (double))
Now, I want to call it in C#. What should I do?
First, I added the .dll as reference in the project.
and then by applying "using" keyword I've tried to call it.
But I do not know the next step. How should I pass "b","c","d" to MATLAB
and then get the result, "a"?
Any comment is appreciated.
Posted

1 solution

It's really a question of how a MATLAB dll exposes its method signature such that a C# program can call it. I would suggest looking at the MATLAB documentation for guidance.
 
Share this answer
 

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