Can I derive the Respiratory Modulator signal (from an ECG) with the function interp2
조회 수: 6 (최근 30일)
이전 댓글 표시
hello everyone,
I was able to create the heart modulator, phi_card shown as follows, where their min. & max. values are +-pi. This was done with the function interp1 (aka linear interpolation of 1st order). The x-coordinates are Samples.
The frequency of this is directly proportional to the RR interval from the ECG signal. Now, the next task is a bit trickier, as the phi_resp is not linear, but rather of second order (or thats my initial guess). The result should look similar to the following image, but as well as for the phi_card, the frequencies for each period should vary.
So my question is, can I achieve this using the function interp2 ? are there any similar examples to catch up (i feel a bit confused atm) ? any other suggestions are also welcome.
PS: I did create the breathing rate signal (see below), but for some reason I can not make the connection with the phi_resp. Any ideas?
Thanks,
David
댓글 수: 3
Karim
2022년 6월 20일
Hello, it is quite difficult to understand your question. "the heart modulator, phi_card, RR rate" etc are unknown concepts. To make it clearer (without using more medical(?) terms) it would be easier to attach the code you currently have and indicate where it goes wrong.
Anyhow, if the goal is to use a different method for the interpolation, you can still use the "interp1" function, however change the method to cubic or spline:
vq = interp1(x, v, xq, method)
Also, for the best result I would unwrap the data before the interpolation, and afterwards wrap it again.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!