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!