diff options
Diffstat (limited to '2279/CH6/EX6.6')
-rw-r--r-- | 2279/CH6/EX6.6/Ex6_6.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2279/CH6/EX6.6/Ex6_6.sce b/2279/CH6/EX6.6/Ex6_6.sce new file mode 100644 index 000000000..6b952dc2a --- /dev/null +++ b/2279/CH6/EX6.6/Ex6_6.sce @@ -0,0 +1,16 @@ +//Sampling the signal at nyquist rate
+clear;
+clc;
+close;
+t=-1:0.01:1;
+x=2*cos(200*%pi*t)+3*sin(100*%pi*t)-4*sin(500*%pi*t);
+f1=100;
+f2=50;
+f3=250;
+fb=max(f1,f2,f3);
+Fs=2*fb;
+Ts=1/Fs;
+n=-10:10;
+x_n=2*cos(200*%pi*n*Ts)+3*sin(100*%pi*n*Ts)-4*sin(500*%pi*n*Ts);
+plot2d3('gnn',n,x_n)
+xtitle("DT Signal x(n) sampled at nyquist rate","n","x[n]");
|