Can Matlab handle .NET methods that have a return type and a REF or OUT parameter ?

1 view (last 30 days)
I have a .NET library which defines a function as:
public bool GetAssignedModules( out int modules )
From my reading so far Matlab handles out and ref parameters by returning them as the return type. In this case the function already has a return type that is not void, so I get the boolean return value, but I don't see how to get the integer value that should be have been passed back through the modules reference.
Is there a solution for this?

Accepted Answer

Guillaume
Guillaume on 4 Oct 2016
Edited: Guillaume on 4 Oct 2016
methods or methodsview will tell you the method signature in matlab.
Possibly, it has two return arguments, so:
[tf, modules] = classname.GetAssignedModules();

More Answers (0)

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!