Back to the main page.
Bug 702 - allow feedback to be turned off in ft_freqanalysis
Status | CLOSED FIXED |
Reported | 2011-05-27 04:24:00 +0200 |
Modified | 2011-06-01 13:42:08 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P1 minor |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Joseph Dien - 2011-05-27 04:24:55 +0200
Currently, if cfg.feedback is set to 'no' the ft_checkdata call in ft_freqanalysis still generates feedback, as in: the input is raw data with 129 channels and 1 trials My suggestion is to change the line from: data = ft_checkdata(data, 'datatype', {'raw', 'comp', 'mvar'}, 'feedback', 'yes', 'hasoffset', 'yes', 'hastrialdef', 'yes'); to: data = ft_checkdata(data, 'datatype', {'raw', 'comp', 'mvar'}, 'feedback', cfg.feedback, 'hasoffset', 'yes', 'hastrialdef', 'yes');