Filter data series on amplitude as a function of time
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
ibt
le 28 Mai 2021
0 votes
1 commentaire
Star Strider
le 28 Mai 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.
Catégories
En savoir plus sur Measurements and Feature Extraction dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



