Find peaks in data without using signal processing tool
Mostrar comentarios más antiguos
Hello Guys,
I am working on a set of data, attached.
I am using MatlabR2021b, I don't have signal processing tool. Therefore can't use peak function.
I need to find:
- Total number of peaks in data
- What are the corresponding values of eack peak
Would appreciate if anyone can suggest a solution.
Please let me know if my question is not clear.
Thanks
Respuesta aceptada
Más respuestas (1)
If the data is not too large, you can test features of the findpeaks() function in this forum.
[data] = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1059360/peaktest.xlsx');
plot(data.Time, data.spike2)
[pks, locs] = findpeaks(data.spike2)
num_of_pks = length(pks)
1 comentario
Harsimran Singh
el 11 de Jul. de 2022
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

