<div dir="ltr">Just to add to Jim's point, some ITAB formats are supported in Fieldtrip (I see itab_raw and itab_mhd). If you can get your data to be in one of those formats, things will be much easier for you.<div><br></div><div>Best,</div><div><br></div><div>Vladimir</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 20, 2015 at 4:05 PM, Herring, J.D. (Jim) <span dir="ltr"><<a href="mailto:j.herring@donders.ru.nl" target="_blank">j.herring@donders.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dear Daphne,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you are trying to read your own data format into fieldtrip, perhaps you should have a look at this page:
<a href="http://www.fieldtriptoolbox.org/faq/how_can_i_import_my_own_dataformat" target="_blank">
http://www.fieldtriptoolbox.org/faq/how_can_i_import_my_own_dataformat</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It would be easier to transform your data format to be used in Fieldtrip than to first convert it to a CTF format and then read it into Fieldtrip.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jim<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a> [mailto:<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a>]
<b>On Behalf Of </b>Daphné Bertrand-Dubois<br>
<b>Sent:</b> donderdag 20 augustus 2015 16:14<br>
<b>To:</b> FieldTrip discussion list</span></p><div><div class="h5"><br>
<b>Subject:</b> Re: [FieldTrip] Convert .mat to .ds<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Thank you!<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">It was my error : I downloaded an older version, the one on the top of the list!<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">I am a little bit confused, it looks like if I need to put .ds as an input file. I just have .mat times-series that doesn't come from CTF so I cannot use readCTFds.m. Would it be possible
 to convert .mat times-series (nSensor x ntimes-series) to .ds?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Best,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Daphné<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-family:"Calibri","sans-serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Calibri","sans-serif"">From:
<a href="mailto:j.herring@donders.ru.nl" target="_blank">j.herring@donders.ru.nl</a><br>
To: <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>
Date: Thu, 20 Aug 2015 07:37:20 +0000<br>
Subject: Re: [FieldTrip] Convert .mat to .ds<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dear Daphne,</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have checked for you and the newest available version of fieldtrip (also fieldtrip-lite) includes writeCTFds.m in the folder ‘fieldtrip\external\ctf\’. I
 have also checked a version from 2010 and it was there back then as well. </span>
<span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best,</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jim</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a> [<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">mailto:fieldtrip-bounces@science.ru.nl</a>]
<b>On Behalf Of </b>Daphné Bertrand-Dubois<br>
<b>Sent:</b> woensdag 19 augustus 2015 17:19<br>
<b>To:</b> <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>
<b>Subject:</b> [FieldTrip] Convert .mat to .ds</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif"">Hi,</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif"">I have data (from the MEG at ITAB) that cannot be process by fieldtrip. Howerver, we have convert them into .mat file and I would like them to be in .ds format so I can process the data.</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif"">I read this message: </span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif"">" Hello z.imane</span></b><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
<div>
<pre style="white-space:pre-wrap"><b><span style="font-family:"Tahoma","sans-serif""> </span></b><u></u><u></u></pre>
<pre><b><span style="font-family:"Tahoma","sans-serif"">To convert .mat to .ds, try using the function writeCTFds.m located in the</span></b><u></u><u></u></pre>
<pre><b><span style="font-family:"Tahoma","sans-serif"">fieldtrip folder /fieldtrip/external/ctf/</span></b><u></u><u></u></pre>
<pre><b><span style="font-family:"Tahoma","sans-serif""> </span></b><u></u><u></u></pre>
<pre><b><span style="font-family:"Tahoma","sans-serif"">Best</span></b><u></u><u></u></pre>
<pre><b><span style="font-family:"Tahoma","sans-serif"">Bankim Subhash Chander "</span></b><u></u><u></u></pre>
<pre style="white-space:pre-wrap"><span style="font-family:"Tahoma","sans-serif"">But I did not find the "external" folder with the function writeCTFd.m inside. Maybe it is because I have the new version?</span><u></u><u></u></pre>
<pre style="white-space:pre-wrap"><span style="font-family:"Tahoma","sans-serif"">Best regards,</span><u></u><u></u></pre>
<pre style="white-space:pre-wrap"><span style="font-family:"Tahoma","sans-serif"">Daphné</span><u></u><u></u></pre>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><br>
_______________________________________________ fieldtrip mailing list <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">
fieldtrip@donders.ru.nl</a> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><u></u><u></u></span></p>
</div>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>