<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px"><div id="yui_3_16_0_ym18_1_1458315397833_7078">Hi Federica,</div><div id="yui_3_16_0_ym18_1_1458315397833_7079"><br></div><div dir="ltr" id="yui_3_16_0_ym18_1_1458315397833_7080">when you open the .txt file in notepad, does it have any additional information apart from numeric values? If yes, then you should try another Matlab function for importing the data. If not, then you should find out relevant information, such as sampling rate, time, the labels of the channels, the number of trials, etc. Then, you could build your own data structure inside Matlab and save this file as edf with Fieldtrip.<br></div><div id="yui_3_16_0_ym18_1_1458315397833_7076"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 14px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> El Viernes 18 de marzo de 2016 16:33, Federica Mauro <federica.ma@gmail.com> escribió:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv3413148096"><div><div dir="ltr"><div><div><div><div>Dear Sarang and Robert,<br clear="none"><br clear="none"></div>thank you for youe suggestions.<br clear="none"><br clear="none"></div>I've been working on them, but it seems that my main problem is I don't have an header for my data. And at the moment I don't have any clue on how to get it.<br clear="none"><br clear="none"></div>Basically, when I success in load the data matrix on Matlab, it has the dimensions of <5192001x5 double>, and this doesn't fit with any format recognized by Fieldtrip.<br clear="none"></div>Namely, when I try to construct the header with <br clear="none"><pre> hdr = ft_fetch_header(data)<br clear="none"><br clear="none"></pre><pre>it says: Error using ft_checkdata (line 464)<br clear="none">This function requires raw data as input.<br clear="none"><br clear="none">Error in ft_fetch_header (line 32)<br clear="none">data = ft_checkdata(data, 'datatype', 'raw', 'hassampleinfo',<br clear="none">'yes');<br clear="none"><br clear="none"></pre><pre><span style="font-family:arial, helvetica, sans-serif;">Thank you again for any suggestion.<br clear="none"><br clear="none"></span></pre><pre><span style="font-family:arial, helvetica, sans-serif;">Cheers,<br clear="none"></span></pre><pre><span style="font-family:arial, helvetica, sans-serif;">Federica<br clear="none"></span></pre></div><div class="yiv3413148096gmail_extra"><br clear="none"><div class="yiv3413148096gmail_quote">2016-03-18 8:38 GMT+01:00 Robert Oostenveld <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:r.oostenveld@donders.ru.nl" target="_blank" href="mailto:r.oostenveld@donders.ru.nl">r.oostenveld@donders.ru.nl</a>></span>:<br clear="none"><blockquote class="yiv3413148096gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv3413148096yqt8283445377" id="yiv3413148096yqt38092"><div style="word-wrap:break-word;">Hi Frederica,<div><br clear="none"></div><div>Please look at the FAQ <a rel="nofollow" shape="rect" target="_blank" href="http://www.fieldtriptoolbox.org/faq/how_can_i_convert_one_dataformat_into_an_other">How can I convert one dataformat into an other?</a></div><div><br clear="none"></div><div>best regards,</div><div>Robert</div><div><br clear="none"></div><div><br clear="none"><div><span class="yiv3413148096"></span><div>On 17 Mar 2016, at 15:55, Federica Mauro <<a rel="nofollow" shape="rect" ymailto="mailto:federica.ma@gmail.com" target="_blank" href="mailto:federica.ma@gmail.com">federica.ma@gmail.com</a>> wrote:</div><br clear="none"><div><div class="yiv3413148096h5"><blockquote type="cite"><div dir="ltr">Hi Maité,<div><br clear="none"></div><div>thank you for the suggestion. I don't have the access to BESA now, so I wished I could work it out with Matlab and related toolboxes.</div><div><br clear="none"></div><div>Best regards,</div><div>Federica</div></div><div class="yiv3413148096gmail_extra"><br clear="none"><div class="yiv3413148096gmail_quote">2016-03-16 19:55 GMT+01:00 Maité Crespo García <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:maity_winky@yahoo.es" target="_blank" href="mailto:maity_winky@yahoo.es">maity_winky@yahoo.es</a>></span>:<br clear="none"><blockquote class="yiv3413148096gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="background-color:rgb(255,255,255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:14px;"><div>Hi Federica,</div><div><br clear="none"></div><div>If you have access to BESA, you could import txt files and export them as edf.</div><div><br clear="none"></div><div>Best,</div><div>Maite<br clear="none"></div><div><span></span></div> <div><br clear="none"><br clear="none"></div><div style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div><div> <div dir="ltr"><font face="Arial" size="2"> El Miércoles 16 de marzo de 2016 18:57, Federica Mauro <<a rel="nofollow" shape="rect" ymailto="mailto:federica.ma@gmail.com" target="_blank" href="mailto:federica.ma@gmail.com">federica.ma@gmail.com</a>> escribió:<br clear="none"></font></div>  <br clear="none"><br clear="none"> </div></div><div><div><div><div><div dir="ltr">Dear all,</div>
<div dir="ltr">I'm trying to convert txt files of web recordings in the edf format, but I didn't find a any useful solution until now.<br clear="none">
Do you have any suggestion?</div>
<div dir="ltr">Thank you very much in advance.</div>
<div dir="ltr">Bests,<br clear="none">
Federica<br clear="none">
</div>
</div><br clear="none"></div></div>_______________________________________________<br clear="none">fieldtrip mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div><br clear="none">_______________________________________________<br clear="none">
fieldtrip mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br clear="none"></blockquote></div><br clear="none"></div>
_______________________________________________<br clear="none">fieldtrip mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote></div></div></div><br clear="none"></div></div></div><br clear="none">_______________________________________________<br clear="none">
fieldtrip mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br clear="none"></blockquote></div><br clear="none"></div></div></div><br><div class="yqt8283445377" id="yqt82580">_______________________________________________<br clear="none">fieldtrip mailing list<br clear="none"><a shape="rect" ymailto="mailto:fieldtrip@donders.ru.nl" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br clear="none"><a shape="rect" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div><br><br></div>  </div> </div>  </div></div></body></html>