Kaveh,<div><br></div><div>'<a href="http://fieldtrip.fcdonders.nl/reference/ft_appenddata">ft_appenddata</a>' can combine data from separate files into one datafile with a single command:</div><div>data = ft_appenddata(cfg,data1,data2,data3)</div>

<div><br></div><div>If you want to save it as a brainvision datafile, the funcion '<a href="http://fieldtrip.fcdonders.nl/reference/ft_write_data">ft_write_data</a>' should come in handy. Its use is explained on the page '<a href="http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other?s[]=brainvision">How can I convert one dataformat into an other</a>'.</div>

<div><br></div><div>Good luck,</div><div><br></div><div>Casper</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 1:13 PM, kaveh manshaei <span dir="ltr"><<a href="mailto:kaveh.manshaei@googlemail.com" target="_blank">kaveh.manshaei@googlemail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br><br>I have 3 blocks for each patient in my experiment and 
there are separately header , marker and dat file for each of them! I 
would like to merge these files together and generate one header and one
 dat and one marker file for each patient! Is it possible in fieldtrip 
or you know the other way around?<br>
<br>Thanks in advance<span class="HOEnZb"><font color="#888888"><br>Kaveh
</font></span><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" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>