Back to the main page.

Bug 2428 - wilson2x2 complains about unequal frequency axis with foilim = [0 Ny]

Status CLOSED WORKSFORME
Reported 2014-01-06 14:45:00 +0100
Modified 2014-01-15 14:49:44 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 enhancement
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Jörn M. Horschig - 2014-01-06 14:45:54 +0100

I did an ordinary preprocessing, followed by: cfg = []; cfg.method = 'mtmfft'; cfg.output = 'fourier'; cfg.taper = 'dpss'; cfg.tapsmofrq = 2; cfg.foilim = [0 data.fsample/2]; freq = ft_freqanalysis(cfg, data); the error I get is: Error using sfactorization_wilson2x2 (line 55) frequency axis is not evenly spaced line 55: dfreq = diff(freq); if ~all(dfreq==dfreq(1)) error('FieldTrip:connectivity:sfactorization_wilson2x2', 'frequency axis is not evenly spaced'); end indeed, the freq-axis is not *exactly* the same: >> range(dfreq) ans = 2.8422e-14 >> dfreq(1) ans = 0.6667 does it make sense to work with identical here? If so, what arbitrary tolerance should we take?


Jan-Mathijs Schoffelen - 2014-01-06 15:07:31 +0100

please svn update. Revision 9072 has a patch for this


Jan-Mathijs Schoffelen - 2014-01-06 15:08:01 +0100

.


Jörn M. Horschig - 2014-01-06 15:19:03 +0100

ye, sry... :/


Jörn M. Horschig - 2014-01-06 15:20:03 +0100

working on a saturday evening... who'd expected that?