Back to the main page.

Bug 3283 - Values of variables in tutorial "Preprocessing and analysis of spike-train data" are not reproducible

Reported 2017-04-13 17:02:00 +0200
Modified 2018-03-02 15:04:16 +0100
Product: FieldTrip
Component: documentation
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Valentina - 2017-04-13 17:02:30 +0200

Created attachment 834 Code from tutorial "Preprocessing and analysis of spike and local field potential data" Dear FieldTrip developers, I am passing the tutorial “Preprocessing and analysis of spike and local field potential data” at and have encountered the following inconsistency. The value of data_lfp.hdr.nSamples is different from the listed in the tutorial after reading out LFP data: data_lfp.hdr.nSamples = 7555983 (line 25 in the attached script TestLFPspike.m which is just the code from the tutorial); data_lfp.hdr.nSamples = 7175151 (stated in the tutorial). As stated in tutorial, I have taken the nex-file from and I have copied trialfun_stimon_samples.m code directly from this tutorial. My MATLAB version is R2016a, operating system is macOS Sierra Version 10.12. Best regards, Valentina

Jan-Mathijs Schoffelen - 2018-02-15 10:35:04 +0100

Confirmed. Number has been updated in tutorial

Jan-Mathijs Schoffelen - 2018-03-02 15:04:16 +0100