Authored by JD

add close all at the end so that the job really quits when script is done

... ... @@ -72,4 +72,7 @@ S.FileOut=FileOut;
D=ImaGIN_ArtefactCorrectionModel(S);
set_final_status('OK')
close all
end
... ...
... ... @@ -9,3 +9,7 @@ fprintf('prepare_ImaGIN_BadChannel: S.dataset: %s \n', S.dataset)
fprintf('prepare_ImaGIN_BadChannel: S.FileOut: %s \n', S.FileOut)
fprintf('prepare_ImaGIN_BadChannel: S.trainBase: %s \n', S.trainBase)
D = ImaGIN_BadChannel(S);
close all
end
... ...
... ... @@ -3,3 +3,7 @@ function prepare_ImaGIN_BadChannelQualityControl(FileIn)
clear S;
S.dataset = fullfile(FileIn);
D = ImaGIN_BadChannelQualityControl(S);
close all
end
... ...
... ... @@ -20,4 +20,7 @@ S.SaveFile=deblank(file);
disp(S.SaveFile(1:end-length(ext)-1));
set_final_status('OK')
close all
end
... ...
... ... @@ -17,3 +17,6 @@ else
end
D = ImaGIN_CropAuto(S);
close all
end
... ...
... ... @@ -84,6 +84,9 @@ S.FileOut = FileOut;
D = ImaGIN_Electrode(S);
set_final_status('OK')
close all
end
... ...
... ... @@ -22,4 +22,6 @@ S.EventFileName{1}=FileEventIn;
S.FileOut=FileOut;
ImaGIN_Events(S);
close all
end
\ No newline at end of file
... ...
... ... @@ -4,4 +4,6 @@ P.fname = FileIn;
P.FileOut = FileOut;
ImaGIN_NotchFilter(P);
close all
end
\ No newline at end of file
... ...
... ... @@ -28,5 +28,6 @@ S.FileOut=FileOut;
S.Channels=[];
ImaGIN_StimDetect(S);
close all
end
\ No newline at end of file
... ...
... ... @@ -17,4 +17,6 @@ S.Offset=Offset;
S.FileOut=FileOut;
ImaGIN_TimeZero(S);
close all
end
\ No newline at end of file
... ...
... ... @@ -3,4 +3,8 @@ clear S;
S.dataset = fullfile(FileIn);
S.DirFileOut = FileOut;
S.defaultPulseDuration = defaultPulseDuration;
ImaGIN_Validate_StimNames(S);
\ No newline at end of file
ImaGIN_Validate_StimNames(S);
close all
end
... ...
... ... @@ -71,4 +71,6 @@ end
D = ImaGIN_spm_eeg_converteeg2mat(S);
close all
end
\ No newline at end of file
... ...
... ... @@ -38,4 +38,8 @@ D = ImaGIN_spm_eeg_filter(S);
set_final_status('OK')
close all
end
... ...
... ... @@ -3,3 +3,8 @@ function prepare_ImaGIN_trainBaseUpdate(inDir)
clear S;
S.DirIn = inDir;
ImaGIN_trainBaseUpdate(S)
close all
end
... ...