blob: 0f088a5eda00190843fc19d780b25470769360c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 6.12
clc;clear;close;
N=4;
n=0:N-1;
x=cos(%pi/4*n);
//Calculation of DFT
X=dft(x,-1);
X=clean(X);
disp(x,'Given Sequence is x(n): ');
disp(X,'DFT of the Sequence is X(k): ');
|