Question: matlab 5) Write a function that take in an array of numbers and a window size. The function should produce a new array containing the

matlab matlab 5) Write a function that take in an array of numbers

5) Write a function that take in an array of numbers and a window size. The function should produce a new array containing the windowed-average of the input array. The windowed-average is the average of the window of points centered on the point in question. For example, if the window size is 3 and the input array is inArray, the windowed average for point 10 is: (inArray(9) + inArray(10) + inArray(11)/3 In this example, w=5. There will be 5 values in the output array. The first and fourth values are shown 25 1 2 6 2 8 9 25 3 1 2 2 8 9 ave - (2+5+3+1+2)/5 ave = (1 +2 +6+2+8)/5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!