<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Eras Medium ITC";
        panose-1:2 11 6 2 3 5 4 2 8 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ooops, my fault!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The line should go like this:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>data = read_fcdc_data(‘*.meg4’,hdr,2,100,1);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In other words, the first input argument
should be the name of the datafile you’d like to be dealt with (of course
corresponding with the headerfile).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>My apologies.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jan-Mathijs<o:p></o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">FieldTrip discussion list</st1:PersonName>
[mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Virginie.van.Wassenhove@MRSC.UCSF.EDU<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, February 10, 2005
5:45 PM<br>
<b><span style='font-weight:bold'>To:</span></b> FIELDTRIP@NIC.SURFNET.NL<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [FIELDTRIP]</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
Thank you for your prompt response!<br>
Now for the sanity check...these commands don't seem to work either.<br>
<br>
Here is what I get:<br>
-------------------------<br>
<br>
>> hdr = read_fcdc_header('filename.res4');<br>
>> data - read_fcdc_data(hdr,2,100,1);<br>
??? Error using  ==> sprintf<br>
Function is not defined for 'struct' inputs.<br>
<br>
Error in ==> fieldtrip-0.9.5/private/filetype at 275<br>
 warning(sprintf('could not determine filetype of %s', filename));<br>
<br>
Error in ==> read_fcdc_data at 79<br>
if filetype(datafile, 'ctf_ds')<br>
<br>
-------------------------<br>
<br>
I tried this on raw continuous and raw epoched data. Both returned the same
error.<br>
Does that call for a routine change?<br>
<br>
-vv<br>
<br>
<br>
<br>
At 08:26 AM 2/10/2005, J.M. Schoffelen wrote:<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>--> <br>
<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>Dear Virginie,<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Welcome to the fieldtrip-community!<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>A first sanity check to test whether fieldtrip is capable of
handling your data might be the following:<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>hdr = read_fcdc_header(*.res4); (with * being the
name of your file.<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>data = read_fcdc_data(hdr,2,100,1); (which should read in
sample 2 until 100 of the first channel in your data)<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>If this really does not work, that might mean that the
CTF-software you use to record your data is not compatible with the routines <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>we are using to read in the data.<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Yours,<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Jan-Mathijs<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> <o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">FieldTrip discussion list</st1:PersonName> [<a
href="mailto:FIELDTRIP@NIC.SURFNET.NL" eudora=autourl>mailto:FIELDTRIP@NIC.SURFNET.NL</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Virginie.van.Wassenhove@MRSC.UCSF.EDU<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, February 10, 2005
4:37 PM<br>
<b><span style='font-weight:bold'>To:</span></b> FIELDTRIP@NIC.SURFNET.NL<br>
<b><span style='font-weight:bold'>Subject:</span></b> [FIELDTRIP]<br>
</span></font><br>
 <br>
<br>
Hello Fieldtripers!<br>
<br>
I am new to Fieldtrip, and I am experiencing some issues trying to read the CTF
dataset into matlab. <br>
I tried the command lines that were suggested in previous threads without
success.<br>
<br>
I would welcome any help/suggestions...<br>
Thank you! <br>
<br>
- Virginie<br>
<br>
<br>
<font size=2 color=blue face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";color:blue'>Virginie.van.Wassenhove@radiology.ucsf.edu
<br>
</span></font><br>
<font size=2 color=blue face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";color:blue'>vvw@mrsc.ucsf.edu <br>
</span></font><br>
<font size=2 color=blue face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";color:blue'><a
href="http://itsa.ucsf.edu/~vvanwass/welcome.htm" eudora=autourl>http://itsa.ucsf.edu/~vvanwass/welcome.htm</a></span></font>
<br>
<br>
<i><font size=2 color=gray face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";color:gray;font-style:italic'>----------------------------------------------------------------------------
<br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>Virginie van Wassenhove, Ph.D.
- Post-Doctoral Scholar <br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>University of California, San
Francisco (UCSF) <br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>Biomagnetic Imaging Lab,
Magnetic Source Imaging <br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>Department of Radiology <br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>513 Parnassus Avenue, Room 359
(S-362) Box # 0628 <br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>San Francisco, CA 
94143-0628 <br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>----------------------------------------------------------------------------
<br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>Office: 415/476-0190<x-tab>    <br>
</x-tab></span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>Lab: <x-tab>   </x-tab>415/476-6888
<br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>Fax: <x-tab>   </x-tab>415/502-4302
<br>
</span></font></i><br>
<i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
font-family:"Eras Medium ITC";font-style:italic'>----------------------------------------------------------------------------</span></font>
</i><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'></x-sigsep><font size=2 color=blue
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
color:blue'><x-sigsep>Virginie.van.Wassenhove@radiology.ucsf.edu <o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=2 color=blue face="Eras Medium ITC"><span
style='font-size:10.0pt;font-family:"Eras Medium ITC";color:blue'>vvw@mrsc.ucsf.edu
<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
color:blue'><a href="http://itsa.ucsf.edu/~vvanwass/welcome.htm"
eudora=autourl>http://itsa.ucsf.edu/~vvanwass/welcome.htm</a></span></font> <o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2 color=gray
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
color:gray;font-style:italic'>----------------------------------------------------------------------------
</span></font><o:p></o:p></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>Virginie van Wassenhove, Ph.D. - Post-Doctoral Scholar <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><st1:PlaceType w:st="on"><i><font
 size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
 font-style:italic'>University</span></font></i></st1:PlaceType><i><font
size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'> of <st1:PlaceName w:st="on">California</st1:PlaceName>, <st1:City
w:st="on"><st1:place w:st="on">San Francisco</st1:place></st1:City> (UCSF) <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>Biomagnetic Imaging Lab, Magnetic Source Imaging <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>Department of Radiology <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><st1:Street w:st="on"><st1:address
 w:st="on"><i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
  font-family:"Eras Medium ITC";font-style:italic'>513 Parnassus Avenue</span></font></i></st1:address></st1:Street><i><font
size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>, Room 359 (S-362) Box # 0628 <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><st1:place w:st="on"><st1:City
 w:st="on"><i><font size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;
  font-family:"Eras Medium ITC";font-style:italic'>San Francisco</span></font></i></st1:City><i><font
 size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
 font-style:italic'>, <st1:State w:st="on">CA</st1:State>  <st1:PostalCode
 w:st="on">94143-0628</st1:PostalCode></span></font></i></st1:place><i><font
size=2 face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'> <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>----------------------------------------------------------------------------
<o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>Office: 415/476-0190<x-tab>    </x-tab> <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>Lab: <x-tab>   </x-tab>415/476-6888 <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>Fax: <x-tab>   </x-tab>415/502-4302 <o:p></o:p></span></font></i></p>

<p class=MsoNormal style='margin-left:.5in'><i><font size=2
face="Eras Medium ITC"><span style='font-size:10.0pt;font-family:"Eras Medium ITC";
font-style:italic'>----------------------------------------------------------------------------</span></font>
<o:p></o:p></i></p>

</div>

</body>

</html>