How to make a structure with numerous(>200) fields with loop?
조회 수: 1 (최근 30일)
I want to make a structure with fields for each patient, then the cell type(5 by 5) EEG data would be allocated to the fields.
I simply know this way,
S = struct('Pt1',data1,'Pt2',data2,....blablabla)
this makes super long awful code...
I've tried loop like this way but it didn't worked
for i = 1:n
S = struct(strcat('Pt_',num2str(i)),Data(i))
please help me :)