SlideShare a Scribd company logo
1 of 2
Download to read offline
I need help in matlab.The task is echo removing from the signal.Suppose we have a musical
signal include echoes, so we have to design the filter to remove echo.
In attach pics, there is complete description about the question. where h[O] is the signal
attenuation of the direct path between the source of music and the microphone, and h[k]for k >0
can be viewed as the coefficients of the echoes. Choose the coefficients of the echoes as follows:
h[0] = 1, h[50001 0.5 h[90001 0.02 STEP 1 Compute, plot, and play the following music signal
yfn: y[n] = h[k]x(n-k] k=0 where xfk] is your own original musical signal from project
deliverable 2. When you listen to the y[n], you should feel the echoes in the signal. STEP 2: In
the second step, we pretend like we do not know the original signal, and all we have is the
musical signal with echoes, which is yln]. Now, your task is to design a filter, whose impulse
response is denoted as gln), in order to remove the echoes. So, the overall system (including
STEP 1 and STEP 2) looks like
Solution
%clearing window, variables and figures
clear all;
close all;
clf;
clc;
n=10000;
for i=1:1:19999
xa(i)=i-1;
end
x=rand(1,10000);
h=zeros(1,10000);
h(1)=1;
h(5001)=0.5;
h(9001)=0.2;
y = conv(x, h);
stem(xa,y);
title('Signal with echo');
soundsc(y);
for i=1:1:19999
if i==1
v(i)=y(i)-y(i);
elseif i==5001
v(i)=y(i)-0.5*y(i);
elseif i==9001
v(i)=y(i)-0.2*y(i);
else
v(i)=y(i);
end
end
figure;
stem(xa,v)
title('original signal');
soundsc(v);

More Related Content

More from arpittradersjdr

The alpha-helix shown below is part of a water-soluble, globular prot.pdf
The alpha-helix shown below is part of a water-soluble, globular prot.pdfThe alpha-helix shown below is part of a water-soluble, globular prot.pdf
The alpha-helix shown below is part of a water-soluble, globular prot.pdfarpittradersjdr
 
Simple squamous epithelium is structured to best provideA. Diffus.pdf
Simple squamous epithelium is structured to best provideA. Diffus.pdfSimple squamous epithelium is structured to best provideA. Diffus.pdf
Simple squamous epithelium is structured to best provideA. Diffus.pdfarpittradersjdr
 
A tower leans at an angle of about 84.7°. The figure shows that 150 .pdf
A tower leans at an angle of about 84.7°. The figure shows that 150 .pdfA tower leans at an angle of about 84.7°. The figure shows that 150 .pdf
A tower leans at an angle of about 84.7°. The figure shows that 150 .pdfarpittradersjdr
 
A sample of 200 people were asked to identify their major source of .pdf
A sample of 200 people were asked to identify their major source of .pdfA sample of 200 people were asked to identify their major source of .pdf
A sample of 200 people were asked to identify their major source of .pdfarpittradersjdr
 
Prolog programming …Using Amzi Prolog, create and test prolog clau.pdf
Prolog programming …Using Amzi Prolog, create and test prolog clau.pdfProlog programming …Using Amzi Prolog, create and test prolog clau.pdf
Prolog programming …Using Amzi Prolog, create and test prolog clau.pdfarpittradersjdr
 
in java Can we create an object of type Interface Explain your answ.pdf
in java Can we create an object of type Interface Explain your answ.pdfin java Can we create an object of type Interface Explain your answ.pdf
in java Can we create an object of type Interface Explain your answ.pdfarpittradersjdr
 
Implement a client server design using a UDP socket and features of .pdf
Implement a client server design using a UDP socket and features of .pdfImplement a client server design using a UDP socket and features of .pdf
Implement a client server design using a UDP socket and features of .pdfarpittradersjdr
 
Human language uses less sounds and is less symbolic than are the co.pdf
Human language  uses less sounds and is less symbolic than are the co.pdfHuman language  uses less sounds and is less symbolic than are the co.pdf
Human language uses less sounds and is less symbolic than are the co.pdfarpittradersjdr
 
How to build a Linked List that can insert any type of data. For exa.pdf
How to build a Linked List that can insert any type of data. For exa.pdfHow to build a Linked List that can insert any type of data. For exa.pdf
How to build a Linked List that can insert any type of data. For exa.pdfarpittradersjdr
 
Genetics homework1. The rut site involved in Rho-dependent termina.pdf
Genetics homework1. The rut site involved in Rho-dependent termina.pdfGenetics homework1. The rut site involved in Rho-dependent termina.pdf
Genetics homework1. The rut site involved in Rho-dependent termina.pdfarpittradersjdr
 
For the segment of code below display the contents of the Array Stack.pdf
For the segment of code below display the contents of the Array Stack.pdfFor the segment of code below display the contents of the Array Stack.pdf
For the segment of code below display the contents of the Array Stack.pdfarpittradersjdr
 
Explain the sources of police subculture. king undercover would affec.pdf
Explain the sources of police subculture. king undercover would affec.pdfExplain the sources of police subculture. king undercover would affec.pdf
Explain the sources of police subculture. king undercover would affec.pdfarpittradersjdr
 
Endocytosis will move substances ________ the cell using ___________.pdf
Endocytosis will move substances ________ the cell using ___________.pdfEndocytosis will move substances ________ the cell using ___________.pdf
Endocytosis will move substances ________ the cell using ___________.pdfarpittradersjdr
 
Cuckoos are birds that practice brood parasitism. Instead of raising.pdf
Cuckoos are birds that practice brood parasitism. Instead of raising.pdfCuckoos are birds that practice brood parasitism. Instead of raising.pdf
Cuckoos are birds that practice brood parasitism. Instead of raising.pdfarpittradersjdr
 
Case Study QuestionsWhat is the Major Problem identified in case .pdf
Case Study QuestionsWhat is the Major Problem identified in case .pdfCase Study QuestionsWhat is the Major Problem identified in case .pdf
Case Study QuestionsWhat is the Major Problem identified in case .pdfarpittradersjdr
 
Consider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdf
Consider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdfConsider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdf
Consider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdfarpittradersjdr
 
Below is the syntax and the encoding. The instruction below computes.pdf
Below is the syntax and the encoding. The instruction below computes.pdfBelow is the syntax and the encoding. The instruction below computes.pdf
Below is the syntax and the encoding. The instruction below computes.pdfarpittradersjdr
 
Answer the following questions with detailed justifications a) What i.pdf
Answer the following questions with detailed justifications a) What i.pdfAnswer the following questions with detailed justifications a) What i.pdf
Answer the following questions with detailed justifications a) What i.pdfarpittradersjdr
 
(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf
(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf
(1) Access the US Department of Commerce Bureau of Industry and Secu.pdfarpittradersjdr
 

More from arpittradersjdr (19)

The alpha-helix shown below is part of a water-soluble, globular prot.pdf
The alpha-helix shown below is part of a water-soluble, globular prot.pdfThe alpha-helix shown below is part of a water-soluble, globular prot.pdf
The alpha-helix shown below is part of a water-soluble, globular prot.pdf
 
Simple squamous epithelium is structured to best provideA. Diffus.pdf
Simple squamous epithelium is structured to best provideA. Diffus.pdfSimple squamous epithelium is structured to best provideA. Diffus.pdf
Simple squamous epithelium is structured to best provideA. Diffus.pdf
 
A tower leans at an angle of about 84.7°. The figure shows that 150 .pdf
A tower leans at an angle of about 84.7°. The figure shows that 150 .pdfA tower leans at an angle of about 84.7°. The figure shows that 150 .pdf
A tower leans at an angle of about 84.7°. The figure shows that 150 .pdf
 
A sample of 200 people were asked to identify their major source of .pdf
A sample of 200 people were asked to identify their major source of .pdfA sample of 200 people were asked to identify their major source of .pdf
A sample of 200 people were asked to identify their major source of .pdf
 
Prolog programming …Using Amzi Prolog, create and test prolog clau.pdf
Prolog programming …Using Amzi Prolog, create and test prolog clau.pdfProlog programming …Using Amzi Prolog, create and test prolog clau.pdf
Prolog programming …Using Amzi Prolog, create and test prolog clau.pdf
 
in java Can we create an object of type Interface Explain your answ.pdf
in java Can we create an object of type Interface Explain your answ.pdfin java Can we create an object of type Interface Explain your answ.pdf
in java Can we create an object of type Interface Explain your answ.pdf
 
Implement a client server design using a UDP socket and features of .pdf
Implement a client server design using a UDP socket and features of .pdfImplement a client server design using a UDP socket and features of .pdf
Implement a client server design using a UDP socket and features of .pdf
 
Human language uses less sounds and is less symbolic than are the co.pdf
Human language  uses less sounds and is less symbolic than are the co.pdfHuman language  uses less sounds and is less symbolic than are the co.pdf
Human language uses less sounds and is less symbolic than are the co.pdf
 
How to build a Linked List that can insert any type of data. For exa.pdf
How to build a Linked List that can insert any type of data. For exa.pdfHow to build a Linked List that can insert any type of data. For exa.pdf
How to build a Linked List that can insert any type of data. For exa.pdf
 
Genetics homework1. The rut site involved in Rho-dependent termina.pdf
Genetics homework1. The rut site involved in Rho-dependent termina.pdfGenetics homework1. The rut site involved in Rho-dependent termina.pdf
Genetics homework1. The rut site involved in Rho-dependent termina.pdf
 
For the segment of code below display the contents of the Array Stack.pdf
For the segment of code below display the contents of the Array Stack.pdfFor the segment of code below display the contents of the Array Stack.pdf
For the segment of code below display the contents of the Array Stack.pdf
 
Explain the sources of police subculture. king undercover would affec.pdf
Explain the sources of police subculture. king undercover would affec.pdfExplain the sources of police subculture. king undercover would affec.pdf
Explain the sources of police subculture. king undercover would affec.pdf
 
Endocytosis will move substances ________ the cell using ___________.pdf
Endocytosis will move substances ________ the cell using ___________.pdfEndocytosis will move substances ________ the cell using ___________.pdf
Endocytosis will move substances ________ the cell using ___________.pdf
 
Cuckoos are birds that practice brood parasitism. Instead of raising.pdf
Cuckoos are birds that practice brood parasitism. Instead of raising.pdfCuckoos are birds that practice brood parasitism. Instead of raising.pdf
Cuckoos are birds that practice brood parasitism. Instead of raising.pdf
 
Case Study QuestionsWhat is the Major Problem identified in case .pdf
Case Study QuestionsWhat is the Major Problem identified in case .pdfCase Study QuestionsWhat is the Major Problem identified in case .pdf
Case Study QuestionsWhat is the Major Problem identified in case .pdf
 
Consider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdf
Consider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdfConsider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdf
Consider three hypothetical countries, Kipr, Ispania, and Atlantida, .pdf
 
Below is the syntax and the encoding. The instruction below computes.pdf
Below is the syntax and the encoding. The instruction below computes.pdfBelow is the syntax and the encoding. The instruction below computes.pdf
Below is the syntax and the encoding. The instruction below computes.pdf
 
Answer the following questions with detailed justifications a) What i.pdf
Answer the following questions with detailed justifications a) What i.pdfAnswer the following questions with detailed justifications a) What i.pdf
Answer the following questions with detailed justifications a) What i.pdf
 
(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf
(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf
(1) Access the US Department of Commerce Bureau of Industry and Secu.pdf
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

I need help in matlab.The task is echo removing from the signal.Supp.pdf

  • 1. I need help in matlab.The task is echo removing from the signal.Suppose we have a musical signal include echoes, so we have to design the filter to remove echo. In attach pics, there is complete description about the question. where h[O] is the signal attenuation of the direct path between the source of music and the microphone, and h[k]for k >0 can be viewed as the coefficients of the echoes. Choose the coefficients of the echoes as follows: h[0] = 1, h[50001 0.5 h[90001 0.02 STEP 1 Compute, plot, and play the following music signal yfn: y[n] = h[k]x(n-k] k=0 where xfk] is your own original musical signal from project deliverable 2. When you listen to the y[n], you should feel the echoes in the signal. STEP 2: In the second step, we pretend like we do not know the original signal, and all we have is the musical signal with echoes, which is yln]. Now, your task is to design a filter, whose impulse response is denoted as gln), in order to remove the echoes. So, the overall system (including STEP 1 and STEP 2) looks like Solution %clearing window, variables and figures clear all; close all; clf; clc; n=10000; for i=1:1:19999 xa(i)=i-1; end x=rand(1,10000); h=zeros(1,10000); h(1)=1; h(5001)=0.5; h(9001)=0.2; y = conv(x, h); stem(xa,y); title('Signal with echo'); soundsc(y); for i=1:1:19999 if i==1