Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b577b754a6411682a29f835ad2abdfd981e2d8fc 1 parent b4a92c4
Mario Emmenlauer emmenlau authored thouis committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 CPCluster.m
6 CPCluster.m
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.