Structure array - MATLAB
www.mathworks.com › help › matlabEach element of s contains the corresponding element of value. For example, s = struct ('x', {'a','b'}) returns s (1).x = 'a' and s (2).x = 'b'. If value is an empty cell array {}, then s is an empty (0-by-0) structure. s = struct (field1,value1,...,fieldN,valueN) creates a structure array with multiple fields.
Field of structure array - MATLAB getfield
www.mathworks.com › help › matlabJul 19, 2018 · 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. value = getfield (what ( 'C:\Temp' ), 'mlx') value = 1×1 cell array {'testFunc2.mlx'} You also can access a field using dot notation. value = S.mlx.