Back to the main page.
Bug 537 - ft_freqanalysis should error with cfg.output='fourier and cfg.keeptrials='no'
| Status | CLOSED FIXED |
| Reported | 2011-03-17 00:52:00 +0100 |
| Modified | 2011-03-18 01:14:41 +0100 |
| Product: | FieldTrip |
| Component: | specest |
| Version: | unspecified |
| Hardware: | Macintosh |
| Operating System: | Mac OS |
| Importance: | P1 normal |
| Assigned to: | Roemer van der Meij |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Matt Mollison - 2011-03-17 00:52:58 +0100
I'm using fieldtrip-20110315 on a Mac Pro running MATLAB 7.11 and OS X 10.6.6. ft_freqanalysis should not run with cfg.output='fourier and cfg.keeptrials='no'. Das ist verboten. You need the individual trials for later processing of the complex Fourier spectra. Something should be added around line 300 of ft_freqanalysis to make sure that cfg.keeptrials='yes' (and cfg.keeptapers='yes') Cheers, Matt
Jan-Mathijs Schoffelen - 2011-03-17 09:07:57 +0100
I changed the code. Don't remember exactly what lines. Could you check whether it works for you? Thanks, JM
Matt Mollison - 2011-03-18 00:12:36 +0100
Yep, you fixed it. output='fourier' only works with keeptrials='yes' and keeptapers='yes', which is the proper behavior.