How can I smooth out this data?

I have two row vectors with 200 columns. If I plot them I get a zigzag graph. I want to get a graph that is as linear as possible. How can I do this?

Answers (1)

Star Strider
Star Strider on 4 Jan 2021
I have no idea what result you want.
One option would be the smoothdata function.

4 Comments

something like this
Is that the result you want, or the result you got from smoothdata?
If it is the result you want, then experiment with the smoothdata arguments until you approximate it. The 'sgolay' method can probably do that.
that is what I want
I do not have your data, so you will have to experiment with smoothdata to get that result.

Sign in to comment.

Categories

Products

Release

R2020b

Asked:

on 4 Jan 2021

Commented:

on 4 Jan 2021

Community Treasure Hunt

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

Start Hunting!