I want to create a variable that averages the data over one minute from a larger set of data
1 view (last 30 days)
Show older comments
I have a large set of heart rate data collected over 11 hours. Data is collected every one second and I want to get the mean one minute heart rate data in a column vector. many thanks
0 Comments
Answers (2)
Cris LaPierre
on 23 Oct 2021
Not exactly sure what data looks like. I would use groupsummary with the groupbin set the 'minute' and the methods set to 'mean' to average the data into one-minute bins. This assumes the data contains the heart rate at that second, and not just an indication of if the heart beat.
0 Comments
Jabeur Methnani
on 24 Oct 2021
1 Comment
Cris LaPierre
on 24 Oct 2021
Unfortuantely, that live script is not very helpful. Could you attach the raw data file?
See Also
Categories
Find more on ECG / EKG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!