Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can I get the exact matlab coding for the following questions: 1. Create your ow

ID: 1845808 • Letter: C

Question

Can I get the exact matlab coding for the following questions:


1. Create your own audio file that is at least 4 seconds long (the exact time duration is not really important, but do not make the file too long). Use the wavrecord command in MATLAB and a sampling frequency of 10000 Hz. You can also try to find a wav file online. Use the sound command in MATLAB to play the sound. Make sure the recording is fine.


2. Using the wavread command, read the signal into a vector called x. Also read the sampling frequency in to a variable called Fs. Make sure you understand what this sampling frequency means. Plot the received signal as a function of time. Your time axis must have units in seconds.


Questions 3 and 4 are stated below:


Even though the audio signal is originally a continuous-time signal, we cannot represent such signals on a digitial computer directly. In this example, you have sampled the continuous time signal and you are representing it as a discrete-time signal. Create the signal x|2n| and play the signal. See that it sound shriller. Make sure you use the same sampling frequency from before. Think about why this should be the case. Simulate a room with echo. Suppose this speech signal is played in a large room which results in significant echo. Let us model the echo as being composed of a direct path which has no delay and two reflected paths, one corresponding to a delay of tau seconds and another corresponding to a delay of 2tau seconds. Let the reflection coefficient for these two paths be 0.9 and 0.81 respectively. Simulate the received signal y[n] and play it using the sound command. Play around with different values of tau and in your opinion, what is the smallest value of tau for which you can clearly start to hear some distortion in the signal?

Explanation / Answer

omega = linspace(-10*pi,10*pi,1000);
x = (j*omega)./(1+j*omega);
subplot(2,1,1),plot(omega,abs(x));
xlabel('w'),ylabel('|x(j w)|');
subplot(2,1,2),plot(omega,phase(x));
xlabel('w'),ylabel('phase(x(j w))');

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote