From b577b754a6411682a29f835ad2abdfd981e2d8fc Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer Date: Thu, 29 Sep 2011 12:18:03 +0200 Subject: [PATCH] CPCluster.m calls quit at the end. This will cause Matlab to exit in non-deployed mode. Attached patch removes the call to quit, and replaces it with a nice exit statement and an end statement for the function. --- CPCluster.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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