Click here to Skip to main content
14,300,028 members
Rate this:
Please Sign up or sign in to 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.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100