Back to the main page.
Bug 759 - procedure of event-related averaging tutorial does not show the real order how functions are used
Status | CLOSED FIXED |
Reported | 2011-06-13 22:16:00 +0200 |
Modified | 2011-07-13 14:46:35 +0200 |
Product: | FieldTrip |
Component: | documentation |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P1 normal |
Assigned to: | Lilla Magyari |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Lilla Magyari - 2011-06-13 22:16:23 +0200
In the procedure part of the event-related averaging tutorial the megplanar function immediately follows the combine planar function, however, in the script of the same tutorial, the timelockanalysis function is running between the two functions: cfg = []; cfg.planarmethod = 'sincos'; avgFICplanar = ft_megplanar(cfg, avgFIC); cfg = []; avgFICplanar = ft_timelockanalysis(cfg, avgFICplanar); avgFICplanarComb = ft_combineplanar(cfg,avgFICplanar); I guess the script is right and not the procedure (or the figure of the procedure).
Lilla Magyari - 2011-06-13 22:17:55 +0200
(In reply to comment #0) > In the procedure part of the event-related averaging tutorial the megplanar > function immediately follows the combine planar function, however, in the > script of the same tutorial, the timelockanalysis function is running between > the two functions: > > cfg = []; > cfg.planarmethod = 'sincos'; > avgFICplanar = ft_megplanar(cfg, avgFIC); > > cfg = []; > avgFICplanar = ft_timelockanalysis(cfg, avgFICplanar); > avgFICplanarComb = ft_combineplanar(cfg,avgFICplanar); > > I guess the script is right and not the procedure (or the figure of the > procedure). OR: is the order of the two functions interchangeable?
Robert Oostenveld - 2011-06-14 10:47:48 +0200
this was for an older FT version. The single trial avg is converted to a single raw trial and then processed. Previously this resulted in a single raw trial output, which was then converted back into timelock by the call to ft_timelockanalysis. Now it is already converted back to timeklock inside the megplanar function.
Lilla Magyari - 2011-07-13 09:35:34 +0200
I removed the extra timelockanalysis line bw megplanar and combineplanar in the script of the tutorial Lilla