Can I derive the Respiratory Modulator signal (from an ECG) with the function interp2
1 次查看(过去 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 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!