Back to the main page.

Bug 2660 - ft_timelockgrandaverage fails if cfg.parameter is set to 'avg' but dimord includes repetition.

Status CLOSED DUPLICATE
Reported 2014-07-22 13:43:00 +0200
Modified 2019-08-10 12:29:04 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: All
Operating System: All
Importance: P5 normal
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Thomas Hartmann - 2014-07-22 13:43:30 +0200

ft_timelockgrandaverage fails under the following conditions: 1. cfg.parameter = 'avg'; 2. input is from ft_timelockanalysis with cfg.keeptrials = 'yes'; in this case, line 167 results in an error: "Index exceeds matrix dimensions." because the functions expects a 3dim field but .avg is only 2dim. it would be possible to add something like strcmp(cfg.parameter, 'avg') in that area and handle that case differently. but this is just a suggestion.... best, thomas


Jan-Mathijs Schoffelen - 2014-07-22 14:27:22 +0200

marked as duplicate *** This bug has been marked as a duplicate of bug 2372 ***


Robert Oostenveld - 2019-08-10 12:29:04 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.