How can I convert matrix of type MWArray (returned from matlab runtime) to a 2-dim array (double[,]) in C#?
I am working on the simplest matlab & .NET integration as explained in: http://domoreinlesstime.wordpress.com/2013/01/26/access-matlab-from-c/
With the following statement I can convert the variable result of type MWArray to a 1-dim array:
double[] arr = (double[])((MWNumericArray)result).ToVector(MWArrayComponent.Real);
Is there a simple way to convert result into a 2-dim array in C#?