Question: can this be done on Matlab language? thanks. QUESTION 3: A moving average of a data set x = {x1, X2, X3, X4, X5,..., Xn-1,
can this be done on Matlab language? thanks.
QUESTION 3: A moving average of a data set x = {x1, X2, X3, X4, X5,..., Xn-1, Xe } is defined as a set of averages of subsets of the original data set. For example, a moving average of every three terms would be 1/3 * {x1 + x2 + x3, x2 + x3 + x4, x3 + x4 + X5,..., Xn-2 + Xn-1 + xn}. Write a local function that will receive a vector as an input argument, and will calculate and return the moving average of every three elements Remember to test your function in your script. For example, if x = {3, 4, 6.2, 7, 8, 9), the function will return (4.4, 5.7333, 7.0667, 8)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
