<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Eve,<DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV><BLOCKQUOTE type="cite"><DIV>I can use meg-pd toolbox now. However, it seems all the functions in FieldTrip are for evoked data while my raw data is continuous data.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>FieldTrip handles a variety of data, and the low level reading functions can deal with continuous or epoch based raw data.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>When you analyze your data in FT, you usually start by defining your trials, i.e. epochs in your continuous data that are of interest, w.r.t. to some sort of trigger or event. The function PREPROCESSING then scans through your raw data file and returns a data structure which contains all of the specified epochs (for a particular trial definition) in a field data.trial. Please note that this has nothing to do with evoked vs induced responses just yet.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>You can use the output of PREPROCESSING as input to either TIMELOCKANALYSIS or FREQUANALYSIS which look at evoked and induced phenomena, respectively. Afterwards you can call various statistical functions such as FREQDESCRIPTIVES, etc ...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So the reason why I have been giving you the examples using read_header and read_data is because I needed to determine the nature of the error you were getting without really knowning anything about what sort of data is in your file. In your use of FT you do not actually use these functions yourself, but basically use functions like DEFINE_TRIAL and PREPROCESSING to start with.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BLOCKQUOTE type="cite"><DIV> I tried your suggestion. read_head works but read_data doesn't work. I don't know this error just due to memory or continuous data format. I remember previous discussion (<SPAN lang="EN-US" style=""><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 14px;">2-feb-2006</SPAN></FONT></SPAN>) in this emaillist mentioned that read_data couldn't deal with continuous data. The error shows as below:</DIV> <DIV><BR>??? Out of memory. Type HELP MEMORY for your options.</DIV> <DIV>Error in ==> F:\MATLAB6p5\toolbox\fieldtrip-20070213\private\read_data.m<BR>On line 529 ==> dat(:,((i-begepoch)*hdr.nSamples+1):((i-begepoch+1)*hdr.nSamples)) = buf(chanindx,:);</DIV> <DIV>Error in ==> F:\MATLAB6p5\toolbox\fieldtrip-20070213\read_fcdc_data.m<BR>On line 49 ==> [dat] = read_data(varargin{:});</DIV> <DIV> </DIV></BLOCKQUOTE>Just as one final double check, can you try the following to confirm that you can read a block of data from your .fif file:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>filename = 'fullpath/name.fif';</DIV><DIV>dat = read_fcdc_data(filename, 'begsample', 1, 'endsample', 100);</DIV><DIV>size(dat)</DIV><DIV>% this should be an nchan x 100 matrix</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Please let me know if this works, and then look at how to use the PREPROCESSING and DEFINE_TRIAL funcitons to extract relevant epochs from your raw data file (see <A href="http://www2.ru.nl/fcdonders/fieldtrip/doku.php?id=fieldtrip:documentation:tutorial:preprocessing">http://www2.ru.nl/fcdonders/fieldtrip/doku.php?id=fieldtrip:documentation:tutorial:preprocessing</A>)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Regards,</DIV><DIV>Christian</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>----------------------------------------------------------------------</DIV><DIV>Christian Hesse, PhD, MIEEE</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">F.C. Donders Centre for Cognitive Neuroimaging </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">P.O. Box 9101 </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">NL-6500 HB Nijmegen </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The Netherlands</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Tel.: +31 (0)24 36 68293</DIV><DIV>Fax: +31 (0)24 36 10989</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Email: <A href="mailto:c.hesse@fcdonders.ru.nl">c.hesse@fcdonders.ru.nl</A></DIV><DIV>Web: <A href="http://www.fcdonders.ru.nl">www.fcdonders.ru.nl</A></DIV><DIV>----------------------------------------------------------------------</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "></SPAN><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN></SPAN></SPAN> </DIV><BR></DIV></BODY></HTML>