Question: 11. Here's a somewhat challenging assignment. If you can crack this, give yourself a pat on the back. You are in very good shape. In

 11. Here's a somewhat challenging assignment. If you can crack this,

11. Here's a somewhat challenging assignment. If you can crack this, give yourself a pat on the back. You are in very good shape. In an application, suppose r= 21, 22, 23, 24, 25, 26, 27). This is what we want to do. We want to compute the vector y whose elements are to be found as follows: first element of y should be +3+13 second element of y should be 12+13+04 third element of y should be 13+2+ fourth element of y should be atta6. fifth element of y should be 15+20+27. Stop here since there's no more value in c. Write a MATLAB script (use a for loop) to implement the above logic. Test if your code is working properly by using x = 1, 2, 3, 4, 5, 6, 7 and other arbitrarily defined vectors (of length 500, say). Believe it or not, what you have just implemented is a digital low pass filter, which can be used to remove (somewhat) screechy sounds from an old audio tape (after digitizing it, of course, say into a 'wav' or an 'mp3 file). Now try to generalize your code as follows: introduce a variable named WINDOW. The value which is assigned to this variable should control how many elements of x are to be averaged every time and therefore also the denominator). As the problem has been described, WINDOW = 3 since we are averaging over 3 elements of the x vector every time. If WINDOW = 4, we would compute y as follows: first element of y should be tatt second element of y should be 12+ third element of y should be + fourth element of y should be tatto+#7 Stop here since there's no more value in z

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!