필터 지우기
필터 지우기

Trouble using the smooth function

조회 수: 3 (최근 30일)
Duncan Wright
Duncan Wright 2017년 11월 12일
답변: Jan 2017년 11월 12일
I am trying to block average this data using the smooth function.
My variable is a double with dimensions,
size(data) = 1x168766
test = smooth(data,25)
It gives no error but the variable test is the same size as the original unsmoothed data.
I'm guessing this is a simple issue but I can't understand why it's not working as I have used it successfully before..

채택된 답변

Jan
Jan 2017년 11월 12일
According to the documentation, smooth is a moving average filter. Then the output has the same size as the inputs. Why do you expect anything else?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Smoothing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by