Code covered by the BSD License  

Highlights from
Overlap Add Method using Circular Convolution Technique

image thumbnail
from Overlap Add Method using Circular Convolution Technique by Sourangsu Banerji
Performs convolution using the Overlap Add Method with the Circular convolution.

y=mycirconv(x,h)
%Function of Circular Convolution for the Overlap Save Method.
function y=mycirconv(x,h)
lx=length(x);
lh=length(h); 
l=max(lx,lh); 
X=[x zeros(1,l-lx)]; 
H=zeros(l); 
H(1:lh)=h; 
for j=1:l-1 
for i=1:l-1 
H(i+1,j+1)=H(i,j); 
end 
H(1,j+1)=H(l,j); 
end 
y=H*X';

Contact us