Menu

Problems with scr_hb2hr and scr_ecg2hb

Help
2015-07-13
2015-07-21
  • Tim Höfling

    Tim Höfling - 2015-07-13

    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

     
  • Dominik Bach

    Dominik Bach - 2015-07-13

    Hi Tim

    thanks for your request. I'll be looking into this within the next 1-2 days.

    Best wishes
    Dominik

     
  • Dominik Bach

    Dominik Bach - 2015-07-14

    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

     
  • Tim Höfling

    Tim Höfling - 2015-07-21

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.