Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

What have you learned through the rough seasons/failures of life?

Answered: 1 week ago

Question

1. Outline the directions on the board.

Answered: 1 week ago