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 Exchange에서 2-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