Chat with us, powered by LiveChat The algorithm picks the array of the original signal and sets 5 out of every | Writedemy

The algorithm picks the array of the original signal and sets 5 out of every

The algorithm picks the array of the original signal and sets 5 out of every

Question

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.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order