Dear SPM Users,

 

I get the following error during the Averaging step in EEG processing. The error seems to be dependent on which type of averaging I use (with some files it works with the standard, but not with robust setting, but there are files where neither of them works).

 

Here is the error log:

 

SPM12: spm_eeg_average (v5624)                     16:52:59 - 18/01/2015

========================================================================

Failed  'Averaging'

Error using mat2file

Can't open file for writing:

                E:\Studies\VE_EEG_Decode_ForcedFusion\EEG_analysis\s01\maefdfMspmeeg_s01_2.dat

Check for write permission or whether the directory exists.

In file "E:\MATLAB\spm12\@file_array\subsasgn.m" (v6157), function "subfun" at line 158.

In file "E:\MATLAB\spm12\@file_array\subsasgn.m" (v6157), function "subsasgn" at line 85.

In file "E:\MATLAB\spm12\@meeg\subsasgn.m" (v5025), function "subsasgn" at line 30.

In file "E:\MATLAB\spm12\spm_eeg_average.m" (v5624), function "spm_eeg_average" at line 194.

In file "E:\MATLAB\spm12\config\spm_cfg_eeg_average.m" (v5624), function "eeg_average" at line 106.

 

System details:

----------------------------------------------------------------------------------------------------

MATLAB Version: 8.3.0.532 (R2014a)

MATLAB License Number:

Operating System: Microsoft Windows 7 Enterprise  Version 6.1 (Build 7601: Service Pack 1)

Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

----------------------------------------------------------------------------------------------------

 

I have already checked the folder permissions, the problem is somewhere else.

 

Could anybody help me please?

 

Many thanks and best,

Mate Aller