Deploy an array with type MATLAB Class to .NET through Data API
이전 댓글 표시
I have a class with properties that look something like this:
classdef MyMatlabClass
properties
name (1,1) string
innerClass (1,:) classes.MyInnerClass
end
end
I want my innerClass to look like an array in .NET (i.e. be a MyInnerClass[] when I query it from MyMatlabClass), but I'm just getting a type of MyInnerClass (not enumerable). When using a double as the property rather than a class, I am getting a double[] and I'm able to index and access it as expected. I've been following the documentation found here ( https://www.mathworks.com/help/compiler_sdk/dotnet/deploy-matlab-classes-to-dotnetapp-using-mda.html ) to do this conversion as well as the strongly typed docs here ( https://www.mathworks.com/help/matlab/matlab_external/data-type-mappings-between-net-and-strongly-typed-matlab-code.html ). I see the limitations in the latter documentation and this use case doesn't seem to be listed there so I hope I'm just missing something.
Thank you for any help,
Matthew
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!