Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Need the matlab code for this Please upload a picture of the code in matlab, if its typed it will be confusing and unclearPart 3

Need the matlab code for this
Please upload a picture of the code in matlab, if its typed it will be confusing and unclearPart 3: Threshold the data & filter it.
Sometimes, you will wish to say that any measured data below a certain value is "garbage". This value is called the "threshold". Conversely, you can say that any value above the threshold is meaningful.
For instance, here I realized that anything below 1.1 was "noise" and didn't represent peaks in my sound data:
Figure 10 The original graphs on on the left. It looks like the threshold should be set to 1.1, which results in thresholded graphs on the right, where anything above 1.1 volts is given a new value of 1 and anything below it is given a value of 0.
Create a new graph. This time, write a conditional statement that contains a threshold value (for example, 1.5):
Converts any voltage below a threshold of 1.5 volts to a value of 0.
Coverts any above 1.5 volts and make it a 1.
Graph the result, making sure to use the axis function in MATLAB to adjust your vertical axis so that you can see values that remain at 0 or 1.
Figure 11 Yo it by applying another moving average filter.
Demonstrate to the TA that you can capture the piano sound, again, but this time, with a thresholded graph that shows between two and four peaks for the four piano key sounds, where the presence of the piano sound is shown as a 1 and no sound is a 0.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students explore these related Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 3 weeks ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 3 weeks ago