Creating several structures within another structure

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?

 Respuesta aceptada

Stephen23
Stephen23 el 4 de Mayo de 2020
Editada: Stephen23 el 4 de Mayo de 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)

Más respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 4 de Mayo de 2020

Comentada:

el 4 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by