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

1 visualización (últimos 30 días)
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

Respuestas (2)

Cris LaPierre
Cris LaPierre el 23 de Oct. de 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.

Jabeur Methnani
Jabeur Methnani el 24 de Oct. de 2021
Many thanks for your reply
Here attached the file

Categorías

Más información sobre ECG / EKG en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by