[FieldTrip] ft_write_data not writing all the data to the edf file

IMT2016025 Akshi Akshi.025 at iiitb.org
Thu Oct 15 20:16:34 CEST 2020


Dear community,

I am trying to save epoched data that is stored in .mat file as .edf using ft_write_data. For example, one of my .mat files has 1713 trials with 651 datapoints in each trial amounting to 1713 * 651 = 1115163 columns in total. I use the following code to concatenate data of these trials and save it as .edf file.

mat_data = load(mat_file_name);
filehdr = ft_fetch_header(mat_data.data);
concat_data = cat(2,mat_data.data.trial{:});
ft_write_data(edf_file_name , concat_data, 'header', filehdr);

I get a .edf file which has only 1115000 columns. Similarly, in another case, original file has 1257081 columns but the generated .edf file has only 1257000 columns.

Could anyone please tell what could be causing this to happen?

Thanks and regards,
Akshi
IIIT-Bangalore, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201015/4b0fc2d7/attachment.htm>


More information about the fieldtrip mailing list