%writing the analyzed data to a bin file so that MEG160 can import it. 
%writingMEGfile(filename,data)

function [] = writingMEGfile(filename,data)

fid=fopen(filename,'w');
fwrite(fid,data,'float');
fclose(fid);
