Open jasonarita opened 8 years ago
From the error message Tara provided, one possibility is that the error occurs in gaverager.m (line 252) when adding 2 vectors of different dimensions.
...
if length(naccepted)==length(countbinOK)
naccepted = naccepted + countbinOK; % cumulative sum of weights: Sum(wi)
auxnaccepted = auxnaccepted + auxbinok; % ###
...
This can occur when naccepted
is a 1x4 matrix while countbinOK
is a 4x1 matrix (or vice-versa)
It'll pass the check on line 251, if length(naccepted)==length(countbinOK)
because the function length
provides the longest dimension. However, a dimension mismatch error can still occur when trying to add a 1x4 matrix to a 4x1 matrix.
I emailed Tara:
One quick fix you could do is to update to the latest version of ERPLAB v5.0.0.0 (and perhaps the latest EEGLAB as well) We added various bug fixes that might solve your problem. If you still run into the error though, just let us know.
And Tara replied
so it ran through on the new version, but I got a warning:
naccepted field size does not match the number of current bins In gaverage at 264 In pop_gaverager at 295 In pop_gaverage at 169
Description
[via email: Tara Miskovich]
I am running into some trouble trying to create a grand average for my contra and ipsi erps.
This is the error I can when I try and run. Any insight would be a big help. I can no problem when I create and contra-ipsi erp from these same erps.
Steps to Reproduce
Expected behavior:
[What you expected to happen]
Actual behavior:
[What actually happened]
Versions