MATLAB: How to create a structure inside a structure structures I have to create a structure called rover that contains a structure called wheel assembly inside it. How do I go about doing this? Best Answer Examplea=struct('rover',struct('assembly',{1 2 3})) Related SolutionsMATLAB: Creating several structures within another structure 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) MATLAB: How to create a structure YourStruct = struct('A', {cell(20,1)}, 'B', {zeros(20,1)}, 'C', {zeros(20,1)}, 'D', {zeros(20,1)}, 'E', {zeros(20,1)}, 'F', {zeros(20,1)});Or if you prefer,YourStruct.A = cell(20,1);for FN = 'BCDEF' YourStruct.(FN) = zeros(20,1);end Related QuestionHow to add a new field in astructHow to create a structureHow delete empty fields in a structHow remove a field inside a structureHow can i make structure inside structure
Best Answer