diff options
Diffstat (limited to '758/CH6/EX6.10/Ex_6_10.sce')
-rwxr-xr-x | 758/CH6/EX6.10/Ex_6_10.sce | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/758/CH6/EX6.10/Ex_6_10.sce b/758/CH6/EX6.10/Ex_6_10.sce index 0719a285e..ea79fa40f 100755 --- a/758/CH6/EX6.10/Ex_6_10.sce +++ b/758/CH6/EX6.10/Ex_6_10.sce @@ -1,19 +1,18 @@ -//Example 6.10
-
-clc;clear;close;
-x=[1 1 2 2 3 3];
-//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): ');
-subplot(3,1,1);
-plot2d3(x);
-title('Given Seqence x[n]:');ylabel('Amplitude-->');xlabel('n-->');
-subplot(3,1,2);
-plot2d3(abs(X));
-title('Magnitude Spectrum |X(k)|');xlabel('k-->');
-subplot(3,1,3);
-plot2d3(atan(X));
-title('Phase Spectrum /_X(k)');xlabel('k-->');
-
+//Example 6.10 + +clc;clear;close; +x=[1 1 2 2 3 3]; +//Calculation of DFT +X=fft(x,-1); +X=clean(X); +disp(x,'Given Sequence is x(n): '); +disp(X,'DFT of the Sequence is X(k): '); +subplot(3,1,1); +plot2d3(x); +title('Given Seqence x[n]:');ylabel('Amplitude-->');xlabel('n-->'); +subplot(3,1,2); +plot2d3(abs(X)); +title('Magnitude Spectrum |X(k)|');xlabel('k-->'); +subplot(3,1,3); +plot2d3(atan(X)); +title('Phase Spectrum /_X(k)');xlabel('k-->');
\ No newline at end of file |