From be4f44994a024948347e8bd6176b0bbc794e1ce3 Mon Sep 17 00:00:00 2001 From: Johanna Bayer Date: Sun, 14 May 2023 18:54:46 +1000 Subject: [PATCH] take save in review out of if statement --- .../tapas_physio_create_retroicor_regressors.m | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/PhysIO/code/model/tapas_physio_create_retroicor_regressors.m b/PhysIO/code/model/tapas_physio_create_retroicor_regressors.m index 5e290c9a..4c84cba3 100644 --- a/PhysIO/code/model/tapas_physio_create_retroicor_regressors.m +++ b/PhysIO/code/model/tapas_physio_create_retroicor_regressors.m @@ -105,13 +105,7 @@ fr = ons_secs.fr; - if verbose.level >=3 - [pulset, rsampint, rout, resp_max, cumsumh, sumh, h, ... - npulse, dpulse, r_phase, verbose.fig_handles(end+1)] = ... - tapas_physio_get_respiratory_phase( ... - fr,rsampint, verbose.level); - - % save variables in verbose + % save variables in verbose verbose.review.traces.pulset = pulset; verbose.review.traces.rsampint = rsampint; verbose.review.traces.rout = rout; @@ -123,7 +117,11 @@ verbose.review.traces.dpulse = dpulse; verbose.review.traces.r_phase = r_phase; - + if verbose.level >=3 + [pulset, rsampint, rout, resp_max, cumsumh, sumh, h, ... + npulse, dpulse, r_phase, verbose.fig_handles(end+1)] = ... + tapas_physio_get_respiratory_phase( ... + fr,rsampint, verbose.level); else r_phase = tapas_physio_get_respiratory_phase(fr,rsampint, 0); end