Filter data series on amplitude as a function of time
Mostrar comentarios más antiguos
Dear,
Along with greeting, I need to filter a time series, specifically I need to obtain the maximum peak (maximum amplitude that is on the vertical axis), and calculate the time difference (plotted on the horizontal axis) between this peak and the previous peak, in addition to obtain the time difference between the maximum peak and the next peak.
Beforehand thank you very much.
I am attaching code that I have in the meantime and file with the data.
close all, clear all, clc
data=load('data.txt');
t=0:10:4*3600;
plot(t,data)
xlabel('Time (s)')
ylabel('Amplitude (m)')
grid on
Respuesta aceptada
Más respuestas (1)
ibt
el 28 de Mayo de 2021
0 votos
1 comentario
Star Strider
el 28 de Mayo de 2021
Either way.
If the centre peak is always the highest, use it as such. If it as not, use it as the reference anyway.
Categorías
Más información sobre Measurements and Feature Extraction en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



