Clear Filters
Clear Filters

Finding length of time in between peaks.

22 views (last 30 days)
This question was flagged by John D'Errico
I am currently working on a project involving signal processing of ECG and PPG data to calculate Pulse Transit Time (PTT). I need to determine the time between corresponding peaks in ECG and PPG signals with precision down to fractions of a millisecond. However, I'm concerned that my current method might not be providing accurate results. I would appreciate any guidance or suggestions on how to improve my calculations.
I would greatly appreciate suggestions on peak to peak measurment.

Accepted Answer

Star Strider
Star Strider on 12 Apr 2024
Edited: Star Strider on 12 Apr 2024
I already addressed this in my Answer to your previous question on exactly the same topic.
If you are having problems with it, address it there rather than opening another question.
My problem with your file is that the ‘TIME:’ values make no sense. I originally thought that they were fractions of a day, and so converted them to something useful using 'ConvertFrom','datenum' however those values do not make sense. I had to construct a millisecond vector to make the times come out even remotely realistic, however it is obvious that those are not correct. Your code does not at all address the ‘TIME:’ vector.
You need to provide information on the ‘TIME:’ column that permits the values to be useful. There is no current information on how to interpret those values.
EDIT — (12 Mar 2024 at 14:56)
I took another look at the times that I created (calculated from the ‘TIME:’ variable), and I believe they are correct, based on the calculated heart rate (that I just now added). So my interpreting them as fractions-of-a-day and converting them as ‘datenum’ representations appears to be correct.

More Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!