Dear Muhammad,
Try changing line 131 of spm_eeg_average to
if 0
Then SPM will always use a slower but less memory hungry version of
the code. In principle the detection of available memory should be
done automatically in that line but that does not always work on
Windows.
Best,
Vladimir
On Wed, Mar 17, 2010 at 10:18 PM, MP <[log in to unmask]> wrote:
> Hello SPMers,
>
> I am using SPM8 to preprocess EEG data. I was able to preprocess the data
> for one subject using the GUI and then generated a script that now runs
> through all the files in a folder and preporcesses the data. It works quite
> well for the most part but for some files it gives the following error while
> doing Robust Averaging.
>
>
> ??? Error using ==> times
> Out of memory. Type HELP MEMORY for your options.
>
> Error in ==> spm_robust_average at 75
> W = (abs(res)<1) .* ((1 - res.^2).^2);
>
> Error in ==> spm_eeg_average at 141
> [Y, W2] = spm_robust_average(D(chanind, :, goodtrials), 3, ks);
>
> Error in ==> RecursivePreProc_Script at 273 % this the
> script i generated
> D = spm_eeg_average(S);
>
>
>
> Has anyone experienced such error before? Why is it only happening on some
> files and not others (of the same size)? Is there a way to get around this
> error, while still doing Robust averaging?
>
> Thanks
> -Muhammad
>
|