Code for calculating heart rate in Matlab
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Code for calculating heart rate in Matlab?
0 comentarios
Respuestas (1)
Star Strider
el 23 de En. de 2021
Using what data?
For an EKG, use findpeaks to find the R-deflections, then make appropriate use of the ‘locs’ output to calculate the time between R-deflections, and from that, heart rate.
I leave the details to you.
2 comentarios
Star Strider
el 23 de En. de 2021
In that situation, it will be necessary to use an appropriate filter, and likely the envelope function, with findpeaks or islocalmax to determine the peaks. The loudest and most distinctive will be the first heart sound (generally mitral valve closure) and then the second heart sound (pulmonary and aortic valve closure, that will almost always be slightly different in time, even in a healthy heart, known as ‘physiological splitting’). These are generally relatively high frequency, so choose the appropriate bandpass filter design.
Ver también
Categorías
Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!