diff --git a/pspm_cfg/pspm_cfg_run_pp_heart_data.m b/pspm_cfg/pspm_cfg_run_pp_heart_data.m index df6067bf6..f5298ca28 100644 --- a/pspm_cfg/pspm_cfg_run_pp_heart_data.m +++ b/pspm_cfg/pspm_cfg_run_pp_heart_data.m @@ -42,13 +42,17 @@ % copy options opt = struct(); - opt.minhr = job.pp_type{i}.ecg2hb.opt.minhr; - opt.maxhr = job.pp_type{i}.ecg2hb.opt.maxhr; + opt.minHR = job.pp_type{i}.ecg2hb.opt.minhr; + opt.maxHR = job.pp_type{i}.ecg2hb.opt.maxhr; opt.semi = job.pp_type{i}.ecg2hb.opt.semi; opt.twthresh = job.pp_type{i}.ecg2hb.opt.twthresh; % set replace - opt.replace = replace; + if replace + opt.channel_action = 'replace'; + else + opt.channel_action = 'add'; + end % call function [sts, winfo] = pspm_ecg2hb(fn, chan, opt); @@ -99,4 +103,4 @@ end; end; -out = {fn}; \ No newline at end of file +out = {fn};