The algorithm picks the array of the original signal


Part A: AUDIO EXERCISES

Write a Matlab function whose input is the name of the audio file (e.g. 'ENGE.wav' etc.).

1. The algorithm picks the array of the original signal and sets 5 out of every six consecutive values set to 0. That is,
zero five values, keep the next value, zero the next five values, keep the next value, etc. You most likely WILL 
need a loop (e.g. for) to do this.
2. Plot the original signal (array) and the modified signal (array) with 5-out-of-6 zeros on the same axes for 
comparison. (The two signals should be plotted on top of each other.) 
3. The title should be your name and the x-axis should be labeled as 'Indices'.
4. Zoom into the plot so that the difference between the two plots is clear: Paste this close-up image in addition to
the plot in 2.

Just replacing the values with zeros does not reduce the amount of data. 

5. Again take the original data array. What you really need to do is to eliminate every other value. That would make
the array half its original size (smaller to store).
6. Plot the original signal and the compressed signal on the same figure.
7. When you play the modified signal at the same sampling frequency it does not sound right. Think of a way to
make the signal sound like it should. Include the code inside the function which will do this task.

For the sample run, you can compress a signal of your choice. Show the command you used to run your function (with input values). 

You must also include the Matlab function that performs all these tasks: the function must plot the different sets of plots one after the other for both 5-out-of-6 zeros part and the 1-out-of-2 compression part (see how by typing 'figure' in the command window helps).

PART B: IMAGE EXERCISES

1. Create a function that takes a filename as an input (e.g. 'ENGE.jpg' etc.) and has no outputs. It reads the file and creates a figure with 6 plots, in two columns by three rows. In each plot there will be an altered form of the original images as follows.

a. Original image
b. Darker image
c. Lighter image
d. Cropped image (plot the bottom left quadrant of the original image)
e. Original image with a large white square placed in the middle of the original image (choose any reasonable size).
f. Small red square boxes plotted across the diagonal of the original image (again choose any reasonable size for
these red squares). Basically, it should look like a thick red line going from the Top Left to the Bottom Right. 

Request for Solution File

Ask an Expert for Answer!!
Computer Networking: The algorithm picks the array of the original signal
Reference No:- TGS082313

Expected delivery within 24 Hours