I have compiled an MATLAB file into a .NET component using MATLAB Builder NE. The MATLAB file returns multiple output arguments of mixed type; for example:
function [argout1, argout2, ..., varargout] = foo(argin1, argin2, ...., varargin)
When I try cast one of the output MWArray arguments to a native .NET array using the ToArray() method, I get the following error in Visual Studio:
'ToArray' is not a member of 'MathWorks.MATLAB.NET.Arrays.MWArray'.
I would like to be able to cast each individual output argument stored in the MWArray into a native .NET array as I see fit.
Best Answer