peterhcharlton / RRest

Algorithms to estimate respiratory rate from physiological signals
http://peterhcharlton.github.io/RRest/
Other
167 stars 60 forks source link

Reference to non-existent field 'young' #7

Open eelxpeng opened 6 years ago

eelxpeng commented 6 years ago

Hi, thanks for sharing the code. When I tried to run the synthesis data with RRest_v3 as described in the video, I got the following error:

Reference to non-existent field 'young'.

Error in specific_vortal_stats (line 30)
    if sum(rel_subj_els.young == subj_no)

As I checked with breakpoint, rel_subj_els indeed doesn't have young field. Could you help me with this?

peterhcharlton commented 6 years ago

Hi, many thanks for pointing this out. I have now corrected this by changing line 341 of "calc_stats.m" in version 3 of the code to read: calc_vortal_stats = 0; Setting this to zero stops the code trying to calculate these statistics. These statistics are particular to this study, but they are not required for your analysis.

I hope this fixes the issue.

Best wishes,

Pete