<div dir="ltr">Hello,<div>To preprocess multiple data, I entered the following command:</div><div>subj = {'S1_MD_5_epochs.set','S1_MD_6_epochs.set','S1_MD_7_epochs.set','S1_MD_8_epochs.set'};<br>trig = ['BC' 'BnC' 'PC' 'PnC' 'SC' 'SnC'];<br><br>for s = 1:4<br>for c = 1:6<br>    <br>    cfg = [];<br>    cfg.dataset = subj{s};<br>    cfg.trigger = trig(c);<br>    raw_data1 = ft_preprocessing(cfg);<br>    cfg.outputfile = sprintf('raw%s_%d.mat', subj{s},trig(c));<br>    filename = sprintf('raw%s_%d.mat', subj{s},trig(c));<br>    save (filename, 'raw_data1')<br>    <br>end<br>end<br clear="all"><div><br></div><div>When I checked the size of the data matrix of raw_data1, it was 1x1. My questions are:<br><br>1. Shouldn't it be 4x6 as there are 4 subjects and 6 conditions? </div><div>2. When I checked the raw_data1.hdr.orig I found only the last subject's data matrix. What happened to the remaining subjects' data matrix? </div><div>3. Is this matrix the average of all the datasets? (I don't have an equal number of epochs. When I checked the epoch length, raw_data1 is considering only the last participant's number of epochs). </div><div><br></div><div>Am I wrong in thinking this way? How to solve the problem?</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Moumita Bhowmick</div><div dir="ltr">PhD student <div>School of Cognitive Science,</div><div>Jadavpur University</div></div></div></div></div></div></div>