DSP LAB 7 16k2404 Sec C (EE) : %exercise 1 - Circular Folding %N (0 1 2 3) %exercise 3 - Circular Convolution
DSP LAB 7 16k2404 Sec C (EE) : %exercise 1 - Circular Folding %N (0 1 2 3) %exercise 3 - Circular Convolution
H= H=
0 0 0 0 1 4 3 2
0 0 0 0 2 1 4 3
0 0 0 0 3 2 1 4
0 0 0 0 0 0 0 0
H= H=
stem(n2,x);axis([-3 3 0 7]);grid 1 4 3 2 1 4 3 2
0 0 0 0 2 1 4 3
0 0 0 0 3 2 1 4
0 0 0 0 4 3 2 1
H= ans =
1 4 3 2 15 12 9 14
2 1 4 3
0 0 0 0
0 0 0 0
%Exercise 2_Circular Shift
x=[1 3 5 7]
x = 1×4
1 3 5 7
x=transpose([1 3 5 7]);
n=0:3; %n=[0 1 2 3
x1=circshift(x,3);
x1=transpose(x1)
x1 = 1×4
3 5 7 1
%zplane(x)
%zplane(x1);axis([-3 1.6 -1.6 1.6])