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?

回答 (1 件)

Star Strider
Star Strider 2021 年 1 月 4 日

0 投票

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

4 件のコメント

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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 1 月 4 日

コメント済み:

2021 年 1 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by