diff --git a/CPCluster.m b/CPCluster.m index 40d6cc8..3ba9ff7 100755 --- a/CPCluster.m +++ b/CPCluster.m @@ -111,7 +111,8 @@ function CPCluster(batchfile,StartingSet,EndingSet,OutputFolder,BatchFilePrefix, OutputFileName = sprintf('%s/%s%d_to_%d_DONE.mat',OutputFolder,BatchFilePrefix,StartingSet,EndingSet); save(OutputFileName,'BatchSetBeingAnalyzed'); disp(sprintf('Created %s',OutputFileName)); -quit; +fprintf('Module CPCluster finished successfully\n') +end function reportBatchError(errorstring) errorinfo = lasterror; @@ -128,4 +129,5 @@ function reportBatchError(errorstring) end disp([errorstring ': ' lasterr]); disp(ExtraInfo); -quit; +error('Error in execution'); +end