Clear Filters
Clear Filters

Creating several structures within another structure

5 views (last 30 days)
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?

Accepted Answer

Stephen23
Stephen23 on 4 May 2020
Edited: Stephen23 on 4 May 2020
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)

More Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!