[FieldTrip] Sample script for spike+LFP analysis?

Jay Hegdé jhegde at gru.edu
Tue Jan 21 02:30:40 CET 2014

Hi Everyone,

I'd like to use FieldTrip for the joint analysis of spike and local 
field potential (LFP) data.  I'm proficient in Matlab, but very new to 

I'm trying to write a script by precisely following the relevant 
tutorial (http://fieldtrip.fcdonders.nl/tutorial/spikefield). Everything 
goes OK for the first couple of steps, but I'm getting stuck when it 
comes to constructing "a cfg.trl matrix to preprocess the LFP data" 
described in the tutorial.

So can anyone share an example script that actually runs and does this 
analysis, so I can see what the tutorial is talking about?

Thank you very much in advance,
Jay Hegdé
Medical College of Georgia
Georgia Regents University
Augusta, GA, USA

More information about the fieldtrip mailing list