Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error ConvertRawDataToRRIntervals #35

Open
vimazz opened this issue Jan 5, 2022 · 1 comment
Open

error ConvertRawDataToRRIntervals #35

vimazz opened this issue Jan 5, 2022 · 1 comment

Comments

@vimazz
Copy link

vimazz commented Jan 5, 2022

Hello!
Finally, I successfully run the Basic_Demo with my own ecg imported from acq file: thanks Giulia!!

Then I got this error running the other script:

ConvertRawDataToRRIntervals(ECG_RawData,HRVparams,'HC1')
Subscript indices must either be real positive integers or logicals.

Error in bsqi (line 43)
endtime = max([ann1(end), ann2(end)]);

Error in ConvertRawDataToRRIntervals (line 66)
[>>SQIjs, StartSQIwindows_js] = bsqi(jqrs_ann(:),sqrs_ann(:),HRVparams);

and empty results running the Main_HRV_Analysis. I tried also several windows lengths.
I assume that my own data are ok since the basic demo script got the r_peaks.
On the other hand, where am I wrong?

Thanks in advance!!!

@vimazz
Copy link
Author

vimazz commented Jan 9, 2022

Hello,
I guess this problem comes from the run_sqrs.m that gives ans empty. Since this script suggests to use an FIR band-pass filter first, I run the bp_filter_005_40EGC.m. Unfortunately the run_sqrs.m ans is still empty. My raw ECG data have been acquired by Biopac during a fmri session: I used the comb band stop filters as suggested by Acqknowledge. Maybe the data are still too noisy?
Any suggestions?
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant