From da8fb83503826459e836b5c3e9e2a4ae8ac9c757 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Quirion Date: Wed, 13 May 2015 09:44:26 -0400 Subject: [PATCH] This resolves #36 and runs figure in the background --- psom_run_job.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/psom_run_job.m b/psom_run_job.m index f1f8b18..abe69e1 100644 --- a/psom_run_job.m +++ b/psom_run_job.m @@ -72,6 +72,12 @@ psom_gb_vars seed = psom_set_rand_seed(); +%% Does not allow figure display and reset to default value at end +%% of function call +fig_is_visible = get(0, 'defaultFigureVisible') +c = onCleanup(@() set(0, 'defaultFigureVisible', fig_is_visible)) +set(0,'defaultFigureVisible','off') + %% Default options if nargin < 2 flag_heartbeat = false;