[FieldTrip] Converting time stamps into NCS.

Johan Bergmann johan.bergmann at yahoo.com
Fri Jun 10 12:39:37 CEST 2011


Dear Robert,

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 
Matlab.

I call: ft_write_data(new_file.ncs, data, '?', ? , 'matlab', '?')
           ft_write_data(FILENAME, DAT, 'header', HDR, 'dataformat', 
'neuralynx_ncs')


sorry for the simplistic question.

Thanks,

Johan.



________________________________
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.

Dear Johan

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 
details.

best
Robert



On 9 Jun 2011, at 20:35, Johan Bergmann wrote:

> Hello,
> 
> 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.
> 
> Cheers,
> 
> Johan.
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110610/fba00980/attachment-0001.html>


More information about the fieldtrip mailing list