summaryrefslogtreecommitdiff
path: root/758/CH6/EX6.22/Ex_6_22.sce
blob: c5d0f9befbf94b4b5b0db918d8329f8b4a9b3dbe (plain)
1
2
3
4
5
6
7
8
//Example 6.21

clc;clear;
n=0:3;
x=cos(n*%pi/2);
X=clean(fft(x));
disp(x,'x(n)=');
disp(X,'X(k)=');