Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
This resolves #36 and runs figure in the background
Browse files Browse the repository at this point in the history
  • Loading branch information
poquirion committed May 13, 2015
1 parent d2363d8 commit da8fb83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psom_run_job.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da8fb83

Please sign in to comment.