Question: 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.
 Need the matlab code for this Please upload a picture of

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!