[FieldTrip] Converting time stamps into NCS.
johan.bergmann at yahoo.com
Fri Jun 10 12:39:37 CEST 2011
Thanks for your response. I have taken a look at the code in ft_write_data. My
original file was not from a .ncs file format it was from a .mcd file format,
scaled in micro volts and a continuous recording.
So, i have a "900x1 double" voltage values as a variable called "data" in
I call: ft_write_data(new_file.ncs, data, '?', ? , 'matlab', '?')
ft_write_data(FILENAME, DAT, 'header', HDR, 'dataformat',
sorry for the simplistic question.
From: Robert Oostenveld <r.oostenveld at donders.ru.nl>
To: Email discussion list for the FieldTrip project <fieldtrip at donders.ru.nl>
Sent: Fri, June 10, 2011 8:45:30 AM
Subject: Re: [FieldTrip] Converting time stamps into NCS.
You can use
ft_write_data(FILENAME, DAT, 'header', HDR, 'dataformat', 'neuralynx_ncs')
where you have to provide the filename, the data (as 1*Nsamples matrix) and the
header (i.e. everything in upper case in the example). For the header you have
to provide a matlab structure such as the one that is returned by ft_read_header
returns when you read an original neuralynx ncs file.
I suggest that you look into the ft_write_data function at line 529 for further
On 9 Jun 2011, at 20:35, Johan Bergmann wrote:
> I have a .mat file containing a single column of voltage values which i wish to
>convert to the ncs file format. I cannot seem to achieve this, please can
>someone show me a usage example.
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
fieldtrip mailing list
fieldtrip at donders.ru.nl
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fieldtrip