<div>Thank you Christian.</div>  <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>  <div> </div>  <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-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ËÎÌć; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">2-feb-2006</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>  <div>Even the read_data has been improved as continuous data acceptable, I still wonder the following data processing. Is there tool to convert continuous data to "epoch mode" data?</div>  <div> </div>  <div>Thanks.</div>  <div> </div>  <div>Best,</div>  <div>Eve</div>  <div><BR><B><I>Christian Hesse <c.hesse@FCDONDERS.RU.NL></I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Eve,  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>FieldTrip handles (pretty much) all function calls to the meg-pd toolbox for you (in particular which are the appropriate input arguments to use) so you don't have to deal with these issues
 yourself.</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>See if you can extract the header information and some data from your .fif file using?lt;/DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>filename = "fullpath/name.fif"</DIV>  <DIV>hdr = read_fcdc_header(filename);</DIV>  <DIV>% hdr should be a structure</DIV>  <DIV>dat = read_fcdc_data(filename);</DIV>  <DIV>% dat should be a nchan x nsamp matrix</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>see what you get.</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>Regards,</DIV>  <DIV>Christian</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV><BR>  <DIV>  <DIV>On 17 Feb 2007, at 21:03, alotof eve wrote:</DIV><BR class=Apple-interchange-newline>  <BLOCKQUOTE type="cite">  <DIV>Hi, experts,</DIV>  <DIV>?lt;/DIV>   <DIV>   Maybe I misunderstood the command. My MEG data is from NeuroMag 306 channels.  Does that mean I
 should use "Neuromag-306" as <FONT face=NimbusSanL-Bold>argument? Thanks for any suggestion.</FONT></DIV>  <DIV><FONT face=NimbusSanL-Bold></FONT>?lt;/DIV>   <DIV><FONT face=NimbusSanL-Bold>Best,</FONT></DIV>  <DIV><FONT face=NimbusSanL-Bold>Eve</FONT></DIV><FONT face=NimbusSanL-Bold></FONT>  <DIV><FONT face=NimbusSanL-Bold></FONT><BR><BR><B><I>alotof eve <<A href="mailto:alotof_xd@yahoo.com">alotof_xd@yahoo.com</A>></I></B> wrote:</DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Christian,<BR><BR>  ?Yes it works. Thank you so much.<BR>  ?But now I met a new problem. I got only a whole .fif data. When I tried the command "MEGMODEL", it said any argument can be left out. However, the error showed up again: <BR>>> MEGMODEL<BR>??? Could not load the coil files<BR><BR>Error in ==> F:\MATLAB6p5\bin\win32\megmodel.dll<BR>  ?<BR>I couldn't find any .fif file like Neuromag-122 or coilfile.fif. How do
 you settle it?<BR>Thanks.<BR><BR>Best,<BR>Eve<BR><BR><B><I>Christian Hesse <<A href="mailto:c.hesse@FCDONDERS.RU.NL">c.hesse@FCDONDERS.RU.NL</A>></I></B> wrote:   <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">Hi Eve,   <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>you should be able to use the meg-pd toolbox (also from FieldTrip) in Matlab under Windows. I got the toolbox to work in Matlab7 under WindowsXP as follows:</DIV>  <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"><BR></DIV>  <DIV style="MARGIN: 0px">? extract the meg-pd-1.2-10.mswin.zip file to somewhere</DIV>  <DIV style="MARGIN: 0px">-?then copy (or move) the meg_pd_1.2 directory wherever you want</DIV>  <DIV style="MARGIN: 0px">-?in the README file in the meg-pd-1.2-10.mswin directory it specifies that you need to copy the DLL file
 "meg-pd-1.2-10.mswin\lib\i686-pc-cygwin\libmagnet_pd_1.2.dll" into the bin directory of Matlab on your system, in my case this was the directory "MATLAB71\bin\win32"</DIV>  <DIV style="MARGIN: 0px">-?start up Matlab, add the fieldtrip and meg_pd_1.2 directories to your path and try to read your .fif file</DIV>  <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"><BR></DIV>  <DIV style="MARGIN: 0px">Let me know if this works on your Windows system</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>Regards,</DIV>  <DIV>Christian</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV>  <DIV>  <DIV>On 15 Feb 2007, at 17:32, alotof eve wrote:</DIV><BR class=Apple-interchange-newline>  <BLOCKQUOTE type="cite">  <DIV>Hi, experts,</DIV>  <DIV>?lt;/DIV>   <DIV>     I am a new user of fieldtrip. I try to use meg-pd package to import NeuroMag data but it seems
 there is something wrong with the environment. <BR>  ?The error?showed as:<BR>      ?Unable to load mex file: F:\MATLAB6p5\toolbox\fieldtrip-20070213\meg_pd_1.2\loadfif.dll.<BR>The specified module could not be found. </DIV>  <DIV>     </DIV>  <DIV>    ?The true is the .dll is in the same path as .m and the path has been add the Matlab.</DIV>  <DIV>    ?I use Latlab 6.5 under WindowXP. I don't know if it affects. I saw the "lib" in the same meg-pd package included a .dll for pc-cygwin. I wonder if I have to use Matlab under Linux/Unix environment. Or if any other limits.</DIV>  <DIV>?lt;/DIV>   <DIV>     Please help me. Thanks.</DIV>  <DIV>?lt;/DIV>   <DIV>Best,</DIV>  <DIV>Eve</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <HR SIZE=1>  TV dinner still cooling?<BR><A href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</A> on Yahoo! TV.</DIV></DIV></DIV></BLOCKQUOTE></DIV><BR>  <DIV><SPAN class=Apple-style-span
 style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"><SPAN
 class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2">  <DIV>----------------------------------------------------------------------</DIV>  <DIV>Christian Hesse, PhD, MIEEE</DIV>  <DIV><BR class=khtml-block-placeholder></DIV>  <DIV style="MARGIN: 0px">F.C. Donders Centre for Cognitive Neuroimaging?lt;/DIV>   <DIV style="MARGIN: 0px">P.O. Box 9101?lt;/DIV>   <DIV style="MARGIN: 0px">NL-6500 HB Nijmegen?lt;/DIV>   <DIV style="MARGIN: 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="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px; orphans: 2; widows: 2"></SPAN><BR class=Apple-interchange-newline></SPAN></SPAN></SPAN></SPAN></SPAN></DIV><BR></DIV></DIV></DIV></DIV></BLOCKQUOTE><BR>  <DIV>  <HR SIZE=1>  TV dinner still cooling?<BR><A href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</A> on Yahoo! TV.</DIV></BLOCKQUOTE><BR>  <DIV><BR class=khtml-block-placeholder></DIV>  <HR SIZE=1>  No need to miss a message. <A href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail">Get email on-the-go
 </A><BR>with Yahoo! Mail for Mobile. <A href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail">Get started.</A></DIV></DIV></BLOCKQUOTE></DIV><BR>  <DIV><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal;
 LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto">  <DIV>----------------------------------------------------------------------</DIV>  <DIV>Christian Hesse, PhD, MIEEE</DIV>  <DIV><BR
 class=khtml-block-placeholder></DIV>  <DIV style="MARGIN: 0px">F.C. Donders Centre for Cognitive Neuroimaging?lt;/DIV>  <DIV style="MARGIN: 0px">P.O. Box 9101?lt;/DIV>  <DIV style="MARGIN: 0px">NL-6500 HB Nijmegen?lt;/DIV>  <DIV style="MARGIN: 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="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE:
 separate; border-spacing: 0px 0px; orphans: 2; widows: 2; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto"></SPAN><BR class=Apple-interchange-newline></SPAN></SPAN></SPAN></SPAN></SPAN></DIV><BR></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE><BR><p>

<hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a>