I have written the following for loop;
%Name Variables
%Time Data Structure
Time_DataC1 = [];
for aa = 1:38
for bb = 1:38
fieldname = ['Time' num2str(aa)];
Time_DataC1.(fieldname) = dataCOMB{1,1}{1,bb}(1:1024,1);
end
end
which created a time data structure. Basically this code takes data from an array within an array and names the first column Time1, Time2 up to Time38 etc. It does this for the 38 data sets. However, once this is done, is it possible to change to code to
Time_DataC1.(fieldname) = dataCOMB{1,cc}{1,bb}(1:1024,1);
where cc now goes from 1 to 2. Then the value bb starts from 1 and continues to 38 again. This would allow me to record the next time data set from Time39 to Time76. Once this is done can cc be changed to 3 and repeat the process until cc finally finishes at a value of 40?
I have tried using if and elseif statements but I keep getting errors.
Aucun commentaire:
Enregistrer un commentaire