The major thing here is that I\'m having a hard time understand what it\'s askin
ID: 3544976 • Letter: T
Question
The major thing here is that I'm having a hard time understand what it's asking "Write a Matlab function whose input is the name of the audio file." Does that mean I'm reading a file somewhere with the name data.wave?
I understand that the 6th value's will make up the original array whereas all 6 values will make the modified signal. Using a for loop to remove the 5 zeros won't be a problem.
The last thing I'm having a hard time understanding is what am I even plotting?
Help would be greatly appreciated
Write a Matlab function whose input is the name of the audio file (e.g. 'data.wav' etc.). 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. 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.) The title should be vour name and the x-axis should be labeled as Indices'. 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. 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). Plot the original signal and the compressed signal on the same figure. 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.Explanation / Answer
1) yes your u will have to write a line that will ask user to input name of audio file
2) the algo is actually not compressing the audio file .. your job is to compresss the audio file by removing zero points and plot it
hope it helps :)
do rate
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.