<html><head></head><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1450430167445_9130"><span id="yui_3_16_0_1_1450430167445_9455">Hi:</span></div><div id="yui_3_16_0_1_1450430167445_12311" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455">Thanks for providing us with this amazing toolbox.</span></div><div id="yui_3_16_0_1_1450430167445_9479" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455"><br></span></div><div id="yui_3_16_0_1_1450430167445_9468" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455">I am new to fieldtrip. I am trying to import EEG data in the format of *.edf for the purpose of seizure detection for epileptic patients. I can't break up the data as you understand the detection has to have continuous data. However I could load section of the data at a time and clear what is already used and reload again. </span></div><div id="yui_3_16_0_1_1450430167445_12314" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455"><br></span></div><div id="yui_3_16_0_1_1450430167445_9781" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455">So trying to load the data like this:</span></div><div id="yui_3_16_0_1_1450430167445_9782" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455"><br></span></div><div id="yui_3_16_0_1_1450430167445_9467" dir="ltr"><span id="yui_3_16_0_1_1450430167445_9455">cfg.dataset= ('mydata.edf');<br class="" id="yui_3_16_0_1_1450430167445_9454">rawdata=ft_preprocessing(cfg);</span></div><div id="yui_3_16_0_1_1450430167445_9129"><div id="yui_3_16_0_1_1450430167445_9788"><br></div><div id="yui_3_16_0_1_1450430167445_9787">This is the error message I get :</div><div id="yui_3_16_0_1_1450430167445_9993"><br></div><div id="yui_3_16_0_1_1450430167445_10293">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br></div><div dir="ltr" id="yui_3_16_0_1_1450430167445_9957"><font id="yui_3_16_0_1_1450430167445_12447" color="#cd232c">Error using zeros<br class="" id="yui_3_16_0_1_1450430167445_9959">Requested 51x51927040 (19.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time<br class="" id="yui_3_16_0_1_1450430167445_9961">and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.<br class="" id="yui_3_16_0_1_1450430167445_9963"><br class="" id="yui_3_16_0_1_1450430167445_9965">Error in read_edf (line 403)<br class="" id="yui_3_16_0_1_1450430167445_9967"> dat = zeros(length(chanindx),nepochs*epochlength);<br class="" id="yui_3_16_0_1_1450430167445_9969"><br class="" id="yui_3_16_0_1_1450430167445_9971">Error in ft_read_data (line 622)<br class="" id="yui_3_16_0_1_1450430167445_9973"> dat = read_edf(filename, hdr, begsample, endsample, chanindx);<br class="" id="yui_3_16_0_1_1450430167445_9975"><br class="" id="yui_3_16_0_1_1450430167445_9977">Error in ft_preprocessing (line 566)<br class="" id="yui_3_16_0_1_1450430167445_9979"> dat = ft_read_data(cfg.datafile, 'header', hdr, 'begsample', begsample, 'endsample', endsample, 'chanindx', rawindx, 'checkboundary',<br class="" id="yui_3_16_0_1_1450430167445_9981"> strcmp(cfg.continuous, 'no'), 'dataformat', cfg.dataformat);<br class="" id="yui_3_16_0_1_1450430167445_9983"><br class="" id="yui_3_16_0_1_1450430167445_9985">Error in ReadFedfiles (line 8)<br class="" id="yui_3_16_0_1_1450430167445_9987">rawdata=ft_preprocessing(cfg);</font></div><div id="yui_3_16_0_1_1450430167445_10006" dir="ltr">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div id="yui_3_16_0_1_1450430167445_10445" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_11250" dir="ltr">I tried the <b>ft_redefinetrial</b>, but since the input to this file is the output from ft-PREPROCESSING it gives me the same error. <br></div><div id="yui_3_16_0_1_1450430167445_11754" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_11917" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_11916" dir="ltr">I also tried to use <b>ft_read_data</b> to choose the samples I want to load :</div><div id="yui_3_16_0_1_1450430167445_11913" dir="ltr"> filename = 'mydata.edf'<br class="" id="yui_3_16_0_1_1450430167445_11906"> hdr = ft_read_header(filename);<br class="" id="yui_3_16_0_1_1450430167445_11908"> sample.start=1<br class="" id="yui_3_16_0_1_1450430167445_11910"> sample.end=100<br class="" id="yui_3_16_0_1_1450430167445_11912">dat = ft_read_data(filename,'sample.start','1','sample.end','100') <br></div><div id="yui_3_16_0_1_1450430167445_11930" dir="ltr">and here is again the error message:</div><div id="yui_3_16_0_1_1450430167445_11961" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_11988" dir="ltr"><font color="#cd232c">Error using zeros<br class="" id="yui_3_16_0_1_1450430167445_11963">Requested 51x51927040 (19.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a<br class="" id="yui_3_16_0_1_1450430167445_11965">long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.<br class="" id="yui_3_16_0_1_1450430167445_11967"><br class="" id="yui_3_16_0_1_1450430167445_11969">Error in read_edf (line 403)<br class="" id="yui_3_16_0_1_1450430167445_11971"> dat = zeros(length(chanindx),nepochs*epochlength);<br class="" id="yui_3_16_0_1_1450430167445_11973"><br class="" id="yui_3_16_0_1_1450430167445_11975">Error in ft_read_data (line 622)<br class="" id="yui_3_16_0_1_1450430167445_11977"> dat = read_edf(filename, hdr, begsample, endsample, chanindx);<br class="" id="yui_3_16_0_1_1450430167445_11979"><br class="" id="yui_3_16_0_1_1450430167445_11981">Error in ReadFedfiles (line 31)<br class="" id="yui_3_16_0_1_1450430167445_11983">dat = ft_read_data(filename,'sample.start','1','sample.end','100')<br class="" id="yui_3_16_0_1_1450430167445_11985"> </font><br class="" id="yui_3_16_0_1_1450430167445_11987">>> <br></div><div id="yui_3_16_0_1_1450430167445_11989" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_12267" dir="ltr">Could you please direct me as to which functions and in which order I should be using the functions to load data in smaller samples.</div><div id="yui_3_16_0_1_1450430167445_12280" dir="ltr">Some examples would be useful.</div><div id="yui_3_16_0_1_1450430167445_12281" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_12289" dir="ltr">Thanks again for your support and assistance. <br>We appreciate your effort.</div><div id="yui_3_16_0_1_1450430167445_12299" dir="ltr"><br></div><div id="yui_3_16_0_1_1450430167445_12292" dir="ltr">Kind regards<br></div><div id="yui_3_16_0_1_1450430167445_11931" dir="ltr"><br></div></div><div id="yui_3_16_0_1_1450430167445_9123" class="signature"><div id="yui_3_16_0_1_1450430167445_9122"><font id="yui_3_16_0_1_1450430167445_9121" color="#000000"><div id="yui_3_16_0_1_1450430167445_9456" style="font-family:'bookman old style', 'new york', times, serif;margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText"><span id="yui_3_16_0_1_1450430167445_9459" style=""><font id="yui_3_16_0_1_1450430167445_9458" face="times new roman, new york, times, serif"><font id="yui_3_16_0_1_1450430167445_9457" size="2">___________________________________________________</font></font></span></div> <div id="yui_3_16_0_1_1450430167445_9120" style="font-family:'bookman old style', 'new york', times, serif;margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText"><span id="yui_3_16_0_1_1450430167445_9119" style=""><font id="yui_3_16_0_1_1450430167445_9118" face="times new roman, new york, times, serif"><font id="yui_3_16_0_1_1450430167445_9117" size="2">Dr. Leila Ayoubian</font></font></span></div> <div id="yui_3_16_0_1_1450430167445_9269" style="margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;" class="MsoPlainText"><font class="Apple-style-span" size="2" face="'times new roman', 'new york', times, serif"><br></font></div></font></div><div style="MARGIN:0cm 0cm 0pt;" class="MsoPlainText"><font color="#000000"><font style="" face="bookman old style, new york, times, serif"><font face="bookman old style, new york, times, serif"><font color="#000000"><span style="color:rgb(84, 140, 214);font-size:9pt;font-family:Arial;" lang="EN-US"><span style="font-size:10pt;font-family:sans-serif;"><font face="bookman old style, new york, times, serif"></font></span></span></font></font></font></font></div></div></div></body></html>