S = struct('Name', {'bob', 'lea', 'pat'}, 'Birth_year', {1990, 1988, 2021}) S = 1×3 struct array with fields: Name Birth_year [S.color] = deal('blue','red','green') S = 1×3 struct array with fields: Name Birth_year color
S = struct('Name', {'bob', 'lea', 'pat'}, 'Birth_year', {1990, 1988, 2021}) S = 1×3 struct array with fields: Name Birth_year [S.color] = deal('blue','red','green') S = 1×3 struct array with fields: Name Birth_year color