How to do Gaussian Filter 1D?
164 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, Community
I wanna ask about how to do a Gaussian Filter in just 1D data.... So i have a data vector based on time series like this :

And i want to filter the data by using Gaussian Filter. So, Anyone, How to do that? Thank you so much....
0 commentaires
Réponse acceptée
Chunru
le 11 Déc 2021
x = readtimetable("IAGA Daily Magnetic Data (1m) Extraction 04-Jul-2021 (CTS).txt")
w = gausswin(10, 2.5);
w = w/sum(w);
y = filter(w, 1, x.Var7);
plot(x.Var7, 'r'); hold on; plot(y, 'b');
legend('original', 'filtered')
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Time Series dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!