Extract MATLABArray data return from Matlab dll in c# with new DATA API for dotnet

38 views (last 30 days)
Built a Matlab dll, a struct is returned from some calcuation of a matlab function.
In the old MWArray data API, I can access the data by extract and marshal it to MWNumericArray.
In the new DATA API for DotNet, I can get the field of the struct data but it is in the {MathWorks.MATLAB.Types.MATLABArray}, how can I extract this array data in C#.
  1 Comment
Shaojun Xiao
Shaojun Xiao on 16 Apr 2024 at 15:38
Has problem for returning of an anonymous struct created as the traditional Matlab code as a.b=1;
Able to return a defined class object from Matlab to C#.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!