Back to the main page.
Bug 3418 - Crashing during ft_freqstatistics
Status | CLOSED DUPLICATE |
Reported | 2018-03-05 18:35:00 +0100 |
Modified | 2019-08-10 12:37:10 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | Macintosh |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Sam Wass - 2018-03-05 18:35:28 +0100
I am a new FieldTrip user. I am trying to run a script that a colleague has sent me, which is basically a wrapper script to call the ft_freqstatistics calculations. They work fine on his computer, which has a 2012 version of FieldTrip and Matlab 2013a. But when we try to run either a later version of Fieldtrip (e.g. 2015) or a later version of Matlab (e.g. 2017b), we get the following bug: Error using findcluster (line 50) invalid dimension of spatdimneighbstructmat Error in clusterstat (line 201) posclusobs = findcluster(reshape(postailobs, [cfg.dim,1]),channeighbstructmat,cfg.minnbchan); Error in ft_statistics_montecarlo (line 348) [stat, cfg] = clusterstat(cfg, statrand, statobs); Error in ft_freqstatistics (line 193) [stat, cfg] = statmethod(cfg, dat, design); The bug seems to occur irrespective of whether we are running the analyses on PC or Mac. I have just recreated the bug with a clean install on a Mac, with the latest version of Fieldtrip and Matlab 2016a. I attach the wrapper script and a sample dataset that causes the crash on our systems. Many thanks, Sam
Robert Oostenveld - 2018-03-07 18:17:57 +0100
this is a double posting. *** This bug has been marked as a duplicate of bug 3417 ***