How can I smooth out this data?
Show older comments
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
on 4 Jan 2021
0 votes
I have no idea what result you want.
4 Comments
SIMONE PARENTELA
on 4 Jan 2021
Star Strider
on 4 Jan 2021
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.
SIMONE PARENTELA
on 4 Jan 2021
Star Strider
on 4 Jan 2021
I do not have your data, so you will have to experiment with smoothdata to get that result.
Categories
Find more on Discrete Data Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!