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