Preface: I'm extremely new to Matlab.
Ok, so I have a sound file that I loaded in Matlab.
Two variables are loaded:
xx - the speech waveform - 16001 samples fs - the sampling frequency of the speech waveform = 22050 Hz
Since fs = 1/T, T = 0.00004535147 seconds
Since there are 16001 samples, the total time for the file is 16001 * T = 0.72566893424 seconds
I plotted the waveform with the x-axis representing time, by using the following command:
At this point, I'm trying to create a discrete-time system impulse response that creates an "echo" of the original waveform. (The echo should be delayed by 1-second and 1/4 the amplitude of the original waveform)
My question is, how do I generate an impulse response in Matlab?
At this time, I've tried to create another array, h, by adding 22050 zeros to the beginning (a 1 second delay), multiplying the whole array by 1/4, then convolving it with the original waveform... all I've managed to achieve is a sound that is roughly equivalent to the Dark Lord himself speaking.
Am I on the right track? This is homework, so I don't want an "answer", but rather steps to understand what I'm doing a little better, I need to learn the material. Sorry if this rambles a bit, Matlab is fairly foreign to me.