Filter data series on amplitude as a function of time
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
ibt
il 28 Mag 2021
0 voti
1 Commento
Star Strider
il 28 Mag 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.
Categorie
Scopri di più su Measurements and Feature Extraction in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



