diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /62/CH6/EX6.61/ex_6_61.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '62/CH6/EX6.61/ex_6_61.sce')
-rwxr-xr-x | 62/CH6/EX6.61/ex_6_61.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/62/CH6/EX6.61/ex_6_61.sce b/62/CH6/EX6.61/ex_6_61.sce new file mode 100755 index 000000000..bc676c873 --- /dev/null +++ b/62/CH6/EX6.61/ex_6_61.sce @@ -0,0 +1,18 @@ +clear;
+close;
+clc;
+T1=10;
+wM=100;
+N=ceil(wM*T1/%pi);
+dw=2*wM/N;
+dt=%pi/wM;
+WN=exp(-%i*2*%pi/N);
+n=0:N-1;
+x=%e^-(n*dt);
+k=0:10;
+Xk=dt*x*exp(-%i*2*%pi*n'*k/N);
+disp(Xk(find(k==0)),Xk(find(k==1)),Xk(find(k==10)),"X[0] X[1] X[10] from X[k]")
+w=0:dw:10*dw;
+Xw=ones(1,length(w))./(%i*w+1);
+disp(Xw(find(w==0)),Xw(find(w==dw)),Xw(find(w==10*dw)),"X(0) X(dw) X(10*dw) from X(w)")
+disp("it can be seen that X[k] gives a good approximation to X(w)")
\ No newline at end of file |