Creating several structures within another structure

3 次查看(过去 30 天)
Im attemtig to create two structures called nodes and elements within a larger structure called tubing. I am able to nest one struct within another, but i cant seem to do more than one. Would anyone know how to do this if at all possible in matlab or offer an alternative?

采纳的回答

Stephen23
Stephen23 2020-5-4
编辑:Stephen23 2020-5-4
MATLAB does not limit how much nesting you can do with any container arrays.
tubing.nodes = struct('X',1);
tubing.elements = struct('cat',Inf,'hat',NaN)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by