wellcome_공부일기

Matlab| insert cell array to structure 본문

프로그래밍/Matlab

Matlab| insert cell array to structure

ma_heroine 2024. 1. 31. 15:10
S = struct('Name', {'bob', 'lea', 'pat'}, 'Birth_year', {1990, 1988, 2021})

[S.color] = deal('blue','red','green')


C = {'small', 'large', 'medium'};
[S.tshirtsize] = C{:}

cell2struct(UABabble(iunit).info, extraction_index, EI);

https://www.mathworks.com/matlabcentral/answers/379250-adding-a-new-field-to-a-struct-array

Comments