Question: The code below implements an echo filter using MATLAB. a) Run this code in MATLAB b) Study EchoFilterEx1 Modify the code so that the echoes

The code below implements an echo filter using MATLAB. a) Run this code in MATLAB b) Study EchoFilterEx1 Modify the code so that the echoes now appear with delays of 1.2 and 1.8 seconds with 10% attenuation and 40% attenuation respectively, instead of the original ones. Modify again the code so that an additional echo is added at 0.5 sec with 30% attenuation. Run your code and verify that the perceptual audio response is consistent with your design. For your final filter with echoes at 0.5 sec, 1.2 sec and 1.8 sec (in additional to the direct path) answer 1. Write the filter unit sample response. 2. Write the filter difference equation. 3. Comment on other student answers (meaningful comments please). 4. Ask for help to the community of students. MATLAB Code Design echo filter that produces the original signal and two echoes. first echo is attenuated by 20% and occurs at 1 seconds second echo is attenuated by 30% and occurs at 1.5 Seconda. System Works at F-3192 close all clear load( 'splat!) al-0.8; a 2-0.7; tal-1; td2-1.5; TS-1/FS; nl- floor (tdl/Ts); n2- floor (td2/Ts); h(1)-1; h(nl)-al; h(n2) -a2; yecho-conv (h,y); N-length (yecho); N-0:N-1; sound (y) plot(y): sound (yecho) figure plot (nts, yecho) The code below implements an echo filter using MATLAB. a) Run this code in MATLAB b) Study EchoFilterEx1 Modify the code so that the echoes now appear with delays of 1.2 and 1.8 seconds with 10% attenuation and 40% attenuation respectively, instead of the original ones. Modify again the code so that an additional echo is added at 0.5 sec with 30% attenuation. Run your code and verify that the perceptual audio response is consistent with your design. For your final filter with echoes at 0.5 sec, 1.2 sec and 1.8 sec (in additional to the direct path) answer 1. Write the filter unit sample response. 2. Write the filter difference equation. 3. Comment on other student answers (meaningful comments please). 4. Ask for help to the community of students. MATLAB Code Design echo filter that produces the original signal and two echoes. first echo is attenuated by 20% and occurs at 1 seconds second echo is attenuated by 30% and occurs at 1.5 Seconda. System Works at F-3192 close all clear load( 'splat!) al-0.8; a 2-0.7; tal-1; td2-1.5; TS-1/FS; nl- floor (tdl/Ts); n2- floor (td2/Ts); h(1)-1; h(nl)-al; h(n2) -a2; yecho-conv (h,y); N-length (yecho); N-0:N-1; sound (y) plot(y): sound (yecho) figure plot (nts, yecho)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
