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

2 ビュー (過去 30 日間)
Philipp
Philipp 2013 年 8 月 28 日
コメント済み: william 2014 年 4 月 24 日
Hi,
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.
Philipp

回答 (1 件)

Chetan Rawal
Chetan Rawal 2013 年 9 月 3 日
I would recommend emailing support@mathworks.com with your workflow and files. They should be able to verify what the issue is, and help you get over it.

カテゴリ

Help Center および File ExchangeMATLAB Compiler SDK についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by