User Tools

Site Tools


analysis:course-w16:week7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
analysis:course-w16:week7 [2016/02/09 14:01]
mvdm [Processing Neuralynx events files (.nev)]
analysis:course-w16:week7 [2018/07/07 10:19] (current)
Line 445: Line 445:
 %% load the data %% load the data
 fc = FindFiles('​*.ncs'​);​ % get filenames of all LFPs recorded fc = FindFiles('​*.ncs'​);​ % get filenames of all LFPs recorded
-data = ft_read_neuralynx_interp(fc);​ % load them all -- this will take a while+data_all ​= ft_read_neuralynx_interp(fc);​ % load them all -- this will take a while
 data_all.hdr.Fs = data_all.fsample;​ % for some reason this is missing from the header data_all.hdr.Fs = data_all.fsample;​ % for some reason this is missing from the header
  
Line 451: Line 451:
 cfg = []; cfg = [];
 cfg.layout = '​ordered';​ cfg.channel = data.label; cfg.layout = '​ordered';​ cfg.channel = data.label;
-layout = ft_prepare_layout(cfg, ​data);+layout = ft_prepare_layout(cfg, ​data_all);
 </​code>​ </​code>​
  
analysis/course-w16/week7.1455044514.txt.gz ยท Last modified: 2018/07/07 10:19 (external edit)