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?

Antworten (1)

Star Strider
Star Strider am 4 Jan. 2021

0 Stimmen

I have no idea what result you want.
One option would be the smoothdata function.

4 Kommentare

SIMONE PARENTELA
SIMONE PARENTELA am 4 Jan. 2021
something like this
Star Strider
Star Strider am 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
SIMONE PARENTELA am 4 Jan. 2021
that is what I want
Star Strider
Star Strider am 4 Jan. 2021
I do not have your data, so you will have to experiment with smoothdata to get that result.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020b

Gefragt:

am 4 Jan. 2021

Kommentiert:

am 4 Jan. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by