Given a sequence x = [0.25 , 0.125 - 0.3j , 0.125 - 0.03j , 0.
5]
Find its circular even and odd function. Also show its properties
x = [0.25 , 0.125 - 0.3j , 0.125 - 0.03j , 0.5];
y = cirflip(x);
Ze = (x + y)/2;
Zo = (x - y)/2;
X = fft(x);
Xe = fft(Ze);
Xo = fft (Zo);
Xreal = real(X);
Ximag = imag(X);
X = [ 1.0000-0.3300i -0.1750+0.4050i -0.2500+0.2700i 0.4250-0.3450i]
Xe = [ 1.0000 -0.1750 -0.2500 0.4250 ]
Xreal=[ 1.0000 -0.1750 -0.2500 0.4250 ]
Xo = [ 0.3300i 0.4050i 0.2700i - 0.3450i ]
Ximag = [ 0.3300 0.4050 0.2700 - 0.3450 ]
Given a sequence x[n]
Find x[(2-n)8]
Find (x[n])^2
Find x(n^2)
x = input('Enter Sequence: ');
p = length(x);
for i = 1 : (8-rem(p,8))
x(1,i+p) = 0;
end
for i = 1 : length(x)
x1(1,i)= x(1,(mod((2-i),8))+1);
end
for n = 1 : p
x2(1,n) = (x(1,n))^2;
end
for n = 1 : sqrt(p)
x3(1,n) = x(1,n^2);
end
p = [1 2 3 4 5 6 7 8];
x2 = [1 4 9 16 25 36 49 64]
x3 = [1 4]
p = [1 2 3 4 5]
x1 = [2 1 0 0 0 5 4 3]