Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
f=WAVREAD('.wav');
g=[1 -0.95];
a=length(f);
b=length(g);
for i=1:b
g1(i)=g(b-i+1);
end
c=a+(b-1)*2;
f1=zeros(1,c);
f1(b:(b-1)+a)=f;
for i=1:c-b+1
s=0;
for j=1:b
s=s+f1(i+j-1)*g1(j);
end
convolu(i)=s;
end
Posted
Comments
Vishal Pand3y 6-Dec-13 11:01am    
at least you should try and if getting any error then ask.
what you are doing is like putting your homework here :(

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
 
Share this answer
 
Comments
Masoud Ozo 6-Dec-13 11:31am    
I also I will not refund you the same way because each person has an independent person and thank you for some strange speech..

I expect that the terms did not, because I have the concept of converting to the C#, but the results is wrong were a line that is


http://www.codeproject.com/Questions/692834/what-is-the-best-code-of-the-convolution
Who?? Only you.

Nobody is going to do your work for you.
 
Share this answer
 
Comments
Masoud Ozo 6-Dec-13 11:13am    
ok i know i can convert that but i want to know what is the library as you know that defrend in c for read the wave dirct thankss
Dave Kreskowiak 6-Dec-13 11:18am    
In the .NET Framework, there is no class dedicated to reading and parsing a .WAV file. You have to supply code to do that yourself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900