<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Luke,
<div><br>
</div>
<div>No, FieldTrip does not allow for this ‘reverse' writing of the CTF format. Out of curiosity, is there a particular reason why you would want to do that? You could check the low-level ctf code that comes shipped with fieldtrip (in external/ctf/), there
 are a bunch of functions that start with write*. Reverse-engineering all this is probably possible (I would start with a low-level description of the data that is outputted as a structure by readCTFds.m. My hunch would be that the MATLAB-representation of
 the data should be in the exact same format to make it writeable.</div>
<div><br>
</div>
<div>Best,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Jan-Mathijs Schoffelen, MD PhD, Senior researcher
<div><br>
Max Planck Institute for Psycholinguistics<br>
Donders Centre for Cognitive Neuroimaging</div>
<div><br>
E-mail: <a href="mailto:j.schoffelen@donders.ru.nl">j.schoffelen@donders.ru.nl</a><br>
Telephone: +31-24-3614793<br>
<br>
<a href="http://www.hettaligebrein.nl">http://www.hettaligebrein.nl</a></div>
<div><a href="http://www.fieldtriptoolbox.org">http://www.fieldtriptoolbox.org</a></div>
</div>
</div>
</div>
</div>
<div> </div>
<div><br>
<div>
<div>On Jul 28, 2015, at 7:03 PM, Luke Bloy <<a href="mailto:luke.bloy@gmail.com">luke.bloy@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>Is anyone aware of any tools for writing CTF DS files out from fieldtrip data structures?</div>
<div><br>
</div>
<div>I see that it isn't listed as an option for ft_write_data (<a href="http://www.fieldtriptoolbox.org/faq/how_can_i_convert_one_dataformat_into_an_other">http://www.fieldtriptoolbox.org/faq/how_can_i_convert_one_dataformat_into_an_other</a>) but perhaps
 others have already dealt with this issue?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Luke</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote>
</div>
<br>
</div>
<br>
</body>
</html>