Hello i'm new use matlab. i would like to use savitzky golay to smooth my data. I have the data in .txt format. Can you help me how to plot my data and use the savgol filteriing? Thank you

4 vues (au cours des 30 derniers jours)
Savitzky Golay Filtering

Réponse acceptée

Ameer Hamza
Ameer Hamza le 10 Août 2018
You can use sgolayfilt() function from Signal Processing Toolbox. For reading data from txt file you can use textscan(). For plotting you can use plot() function. For a more comprehensive example, please attach a sample dataset.
  4 commentaires
Simon Giando
Simon Giando le 12 Août 2018
thank you very much. how if i would like to export the y_filtered to excel?
Ameer Hamza
Ameer Hamza le 12 Août 2018
You can use xlswrite() to write the data from MATLAB to an excel file.

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 11 Août 2018

Catégories

En savoir plus sur Signal Generation and Preprocessing 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!

Translated by