Creating several structures within another structure

4 vues (au cours des 30 derniers jours)
Ikenna Okoye
Ikenna Okoye le 4 Mai 2020
Commenté : Ikenna Okoye le 4 Mai 2020
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?

Réponse acceptée

Stephen23
Stephen23 le 4 Mai 2020
Modifié(e) : Stephen23 le 4 Mai 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)

Plus de réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by