MATLAB Answers


How to marshall single and multi dimensional arrays in C# for passing them to Matlab functions?

Asked by Philipp
on 28 Aug 2013
Latest activity Commented on by william
on 24 Apr 2014
I generated a c# assembly with Matlab Builder NE. The arguments of the deployed fucntions are structs containing 3-, 2- and 1- dimensional array of doubles.
By handing them ofer from C# to the matlab function compiled into the assembly via the TypeSafeAPI I coded, the dimensons were flipped and the vectors were not mapped correctly. Scalars are Ok.
So what can i do to correct the mapping/marshalling of the Arrays? Thank you for your help.

  1 Comment

Sign in to comment.

1 Answer

Answer by Chetan Rawal on 3 Sep 2013

I would recommend emailing with your workflow and files. They should be able to verify what the issue is, and help you get over it.


Sign in to comment.