diff options
Diffstat (limited to '52/CH4/EX4.23/Example4_23.sce')
-rwxr-xr-x | 52/CH4/EX4.23/Example4_23.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/52/CH4/EX4.23/Example4_23.sce b/52/CH4/EX4.23/Example4_23.sce new file mode 100755 index 000000000..b8a307f1b --- /dev/null +++ b/52/CH4/EX4.23/Example4_23.sce @@ -0,0 +1,13 @@ +//Example 4.23
+//Program to Compute the DFT of given Sequence
+//x[n]=cos(n*pi/2), and N=4 using DIF-FFT Algorithm.
+clear;
+clc ;
+close ;
+N=4;
+pi=22/7;
+n=0:1:N-1;
+x =cos(n*pi/2);
+//FFT Computation
+X = fft (x , -1);
+disp(X,'X(z) = ');
\ No newline at end of file |