Hi! I need some help with the following problem, which asks me to create a function that takes a signal vector as input and computes the five-sample weighted moving average of the signal.

1 次查看(过去 30 天)
Here is an example: If your signal file consists of a vector y = [0.8, 0.9, 0.7, 0.6, 0.3, 0.4] We can solve the smoothing problem by making use of a matrix: We first construct a matrix where each row is a shifted and scaled version of the signal, which means that in the first row, y is shifted left twice; in the second row y is shifted left once and multiplied by two; in thethird row y is multiplied by three; etc. Summing each column and dividing by 9 yields the final result: y = [0.54444, 0.7, 0.68889, 0.56667, 0.4, 0.26667]
  1 个评论
Geoff Hayes
Geoff Hayes 2016-3-28
Esther - what have you tried so far? The above description seems like a homework question, so please document what you have attempted and describe any errors or problems that you are observing.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by