Code covered by the BSD License  

Highlights from
EC1302 DSP Lab

EC1302 DSP Lab

by

 

These are matlab code for experiments in the course EC1302 DSP Lab.

y=lincon(x,h)
%y=lincon(x,h) returns linear convolution of sequences x and h
%              using direct method
function y=lincon(x,h)
P=length(x);
M=length(h);

N=P+M-1;

xi=[x,zeros(1,N-P)];
hi=[h,zeros(1,N-M)];

H=[];
for i=0:N-1
    H=[H,(shift(hi,i))'];
end
  
y=(H*xi')';
    

Contact us