フィルターのクリア

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 Center および File ExchangeSmoothing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by