Hi everyone,
I try to convert ecg to heart beat and respiration to respiration period, but the following errors occur:
Running 'Convert ECG to Heart Beat'
Failed 'Convert ECG to Heart Beat'
Subscript indices must either be real positive integers or logicals.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_ecg2hb.m" (v701), function "find_r" at line 376.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_ecg2hb.m" (v701), function "scr_ecg2hb" at line 232.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_cfg\scr_cfg_run_ecg2hb.m" (v701), function "scr_cfg_run_ecg2hb" at line 14.
and
Running 'Convert Respiration to Respiration Period'
Failed 'Convert Respiration to Respiration Period'
Error using scr_hb2hr
Too many input arguments.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_cfg\scr_cfg_run_resp2rp.m" (v701), function "scr_cfg_run_resp2rp" at line 19.
It seems like ECG Data have to be positive (but in my measuremnts are negative values as well), so the question is: Do I have some measurement problems and ECG has to be allways positive or do I "simply" have to add a constant value to bring my measurements to positive values? For the respiration problem I don't have any suggestions...
Does anybody have an idea how to solve these problems?
Sincerly, Tim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems you're using version 3.0. Quite a few changes have been made in these two routines between 3.0 and 3.0.1. Could you perhaps update to the most recent version and let me know how it goes?
Best wishes
Dominik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you are totally right and by using the updated version I've got no problem preprocessing respiration and ECG data. But especially for ECG data I first had to trim because I had huge peaks at the end of my testmeasurement. Maybe this was the basis of my problem.
But is there any possibility to export these preprocessed data to text files, because the export option only supports scr model files?
If I get the manual right, higher order analysis in pspm are only appropriate for scr, but not for ecg, respiration ect?
Thanks,
Tim
Last edit: Tim Höfling 2015-07-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone,
I try to convert ecg to heart beat and respiration to respiration period, but the following errors occur:
Running 'Convert ECG to Heart Beat'
Failed 'Convert ECG to Heart Beat'
Subscript indices must either be real positive integers or logicals.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_ecg2hb.m" (v701), function "find_r" at line 376.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_ecg2hb.m" (v701), function "scr_ecg2hb" at line 232.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_cfg\scr_cfg_run_ecg2hb.m" (v701), function "scr_cfg_run_ecg2hb" at line 14.
and
Running 'Convert Respiration to Respiration Period'
Failed 'Convert Respiration to Respiration Period'
Error using scr_hb2hr
Too many input arguments.
In file "C:\Users\tim.hoefling\Documents\MATLAB\PsPM_3.0\scr_cfg\scr_cfg_run_resp2rp.m" (v701), function "scr_cfg_run_resp2rp" at line 19.
It seems like ECG Data have to be positive (but in my measuremnts are negative values as well), so the question is: Do I have some measurement problems and ECG has to be allways positive or do I "simply" have to add a constant value to bring my measurements to positive values? For the respiration problem I don't have any suggestions...
Does anybody have an idea how to solve these problems?
Sincerly, Tim
Hi Tim
thanks for your request. I'll be looking into this within the next 1-2 days.
Best wishes
Dominik
Hi Tim
It seems you're using version 3.0. Quite a few changes have been made in these two routines between 3.0 and 3.0.1. Could you perhaps update to the most recent version and let me know how it goes?
Best wishes
Dominik
Hi Dominik,
you are totally right and by using the updated version I've got no problem preprocessing respiration and ECG data. But especially for ECG data I first had to trim because I had huge peaks at the end of my testmeasurement. Maybe this was the basis of my problem.
But is there any possibility to export these preprocessed data to text files, because the export option only supports scr model files?
If I get the manual right, higher order analysis in pspm are only appropriate for scr, but not for ecg, respiration ect?
Thanks,
Tim
Last edit: Tim Höfling 2015-07-21