how to find duration of peak; starting and ending points
56 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Raheema Al Karim Damani
el 25 de Feb. de 2020
Respondida: Lam Ha
el 9 de Jun. de 2023
I've used findpeaks to isolate the largest peak in my signal. I wanted some help in finding the duration of the peak aka the starting and ending points of this peak, so that I could calculate area under curve? Right now Im having to visually inspect and pick arbitrary points to define this start and end points.
0 comentarios
Respuesta aceptada
Star Strider
el 25 de Feb. de 2020
Experiment with ths ischange function, and if you have the Signal Processing Toolbox, the findchangepts function.
7 comentarios
Más respuestas (3)
Sindar
el 25 de Feb. de 2020
widths are an optional output from findpeaks:
[pks,locs,widths,~] = findpeaks(data);
2 comentarios
Sindar
el 25 de Feb. de 2020
Alternatively, you could potentially define the starting and ending points using findpeaks on the negative of your data.
Raheema Al Karim Damani
el 25 de Feb. de 2020
Editada: Raheema Al Karim Damani
el 25 de Feb. de 2020
Alexis
el 9 de Jul. de 2021
Editada: Alexis
el 9 de Jul. de 2021
I had a similar issue, although I was working with biological signals. You could try the function I wrote to solve my problem: https://uk.mathworks.com/matlabcentral/fileexchange/81066-breathtimes?s_tid=srchtitle
0 comentarios
Lam Ha
el 9 de Jun. de 2023
Hi, I'm doing my research and meet the same problems as you. Have you calculated the peak duration? Can you share to me how to calculate the peak duration? Thank you so much in advance
0 comentarios
Ver también
Categorías
Más información sobre Get Started with Signal Processing Toolbox 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!