Sounds like you have something like: b = dir('C:\Windows\'); b(1) names = fieldnames(b(1)); for i = 1:numel(names) value{i} = getfield(b(1),names{i}) end Answer from Iain on mathworks.com
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › structures
getfield - Field of structure array - MATLAB
Return the names of all Live Scripts listed in the mlx field. When you use the getfield function, you can access a field of the structure returned by a function without using a temporary variable to hold that structure.
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › structures
Structure Arrays - MATLAB & Simulink
When you have data that you want to organize by name, you can use structures to store it. Structures store data in containers called fields, which you can then access by the names you specify. Use dot notation to create, assign, and access data in structure fields.
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types
Structures - MATLAB & Simulink
Create a structure array and store data in its fields. Access the contents by name using array indexing and dot notation.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 182213-access-structure-array-through-using-string-names
Access Structure Array through using String names - MATLAB Answers - MATLAB Central
September 3, 2015 - My solution was: Because i have Mappe names in my Info structure Array as a string i can reach this Name and i can make a Loop in my calculation file. i am going to Show my example too... ... Maps=Mappe_1.a.T2{1,1} i can get the value. could you please help me about this problem ... https://www.mathworks.com/matlabcentral/answers/182213-access-structure-array-through-using-string-names#comment_270749
🌐
MathWorks
mathworks.com › matlabcentral › answers › 599617-access-field-from-struct
Access Field from Struct - MATLAB Answers - MATLAB Central
September 25, 2020 - Structure arrays have two independent features which need to be considered when accessing their data: the size, which determines what indexing you can use. the fields, which determines what field names you can use. https://www.mathworks.com/help/matlab/matlab_prog/access-multiple-elements-...
Find elsewhere
🌐
MathWorks
mathworks.com › matlabcentral › answers › 411411-accessing-data-from-a-struct
accessing data from a struct - MATLAB Answers - MATLAB Central
July 21, 2018 - It is certainly possible that one or more of those variables are structures (but that does not mean that the file itself "is" a structure). MAT-files are never/rarely opened, they are simply LOADed: ... Sign in to comment. ... Sign in to comment. Sign in to answer this question. Find more on Workspace Variables and MAT Files in Help Center and File Exchange ... Find the treasures in MATLAB Central and discover how the community can help you!
🌐
Northwestern University
ece.northwestern.edu › local-apps › matlabhelp › techdoc › matlab_prog › ch13_ce5.html
Structures and Cell Arrays (Programming and Data Types)
For example, the line below results ... Doe' billing: 127 test: [3x3 double] To access a field of a particular structure, include a period (.) after the structure name followed by the field name....
🌐
MathWorks
mathworks.com › matlabcentral › answers › 290372-how-can-i-access-a-structure-by-using-purely-strings
How can I access a structure by using purely strings? - MATLAB Answers - MATLAB Central
June 16, 2016 - My current code requests a structure from the user as an input in the form of its name 'file'. I am trying to access this structure in my function with the string 'file'. For example structure's...
🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › structures
Access Data in Nested Structures - MATLAB & Simulink
This example shows how to index into a structure that is nested within another structure. The general syntax for accessing data in a particular field is · structName(index).nestedStructName(index).fieldName(indices) When a structure is scalar (1-by-1), you do not need to include the indices to refer to the single element.