Structure array - MATLAB
https://www.mathworks.com/help/matlab/ref/struct.htmlField names can contain ASCII letters (A–Z, a–z), digits (0–9), and underscores, and must begin with a letter. The maximum length of a field name is namelengthmax. You also can create a structure array using the struct function, described below. You can specify many fields simultaneously, or create a nonscalar structure array.
Dynamic fieldnames - MATLAB & Simulink
www.mathworks.com › matlabcentral › answersApr 27, 2011 · Copy to Clipboard. Your code is a little confusing because it doesn't appear that you are assigning anything to the structure. Here is code that does assign values to the structure: names = {'danny';'edgar';'larry'}; field = {'one';'two';'three'}; for ii =1:length (names) Newstruct. (names {ii}). (field {ii}) = ii;
Structure array - MATLAB
www.mathworks.com › help › matlabField names can contain ASCII letters (A–Z, a–z), digits (0–9), and underscores, and must begin with a letter. The maximum length of a field name is namelengthmax. You also can create a structure array using the struct function, described below. You can specify many fields simultaneously, or create a nonscalar structure array.