I want to create a variable that averages the data over one minute from a larger set of data

1 view (last 30 days)
Jabeur Methnani
Jabeur Methnani on 23 Oct 2021
Commented: Cris LaPierre on 24 Oct 2021
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

Answers (2)

Cris LaPierre
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.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by