Permalink
Browse files

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.
  • Loading branch information...
1 parent b4a92c4 commit b577b754a6411682a29f835ad2abdfd981e2d8fc @emmenlau emmenlau committed with thouis Sep 29, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 CPCluster.m
View
6 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

0 comments on commit b577b75

Please sign in to comment.