Using smoothing techniques plot graph.

2 visualizzazioni (ultimi 30 giorni)
I have a problem submitted below. How to plot that graph? I can't graph it. I could get wrong graphs.

Risposta accettata

Ameer Hamza
Ameer Hamza il 23 Mag 2020
This is a moving average filter. You can use movmean(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/movmean.html with 'EndPoints' option set to 'discard'
movmean(y, 3, 'Endpoints', 'discard') % first filter
movmean(y, 5, 'Endpoints', 'discard') % Second filter
  2 Commenti
Hasan Berke Bankoglu
Hasan Berke Bankoglu il 23 Mag 2020
Modificato: Hasan Berke Bankoglu il 23 Mag 2020
Thank you, it's work.
Ameer Hamza
Ameer Hamza il 24 Mag 2020
I am glad to be of help!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by