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=shift(x,i)
%shift (x, i) circularly shifts the elements of x by i samples.
function y=shift(x,i)

N=length(x);

for j=0:N-1
    y(mod(j+i,N)+1)=x(j+1);
end

Contact us