How to smooth the Curve
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear All,
From time analysis I get some values. Ideally my curve should monotonically increase. But due to some noice my curve get little zigzag. How Can I make my curve smooth. To understand please execute the following Code.
x = [1:100];
noice = [5:5:100];
x(noice) = x(noice) - 1;
plot(x);
How can I make my curve smooth.
댓글 수: 0
답변 (1개)
Wayne King
2011년 12월 16일
Hi, one thing you can do is use a moving average filter:
y = filter(1/5*ones(5,1),1,x);
plot(y);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Smoothing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!