From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 67/CH8/EX8.15/example815.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 67/CH8/EX8.15/example815.sce (limited to '67/CH8/EX8.15/example815.sce') diff --git a/67/CH8/EX8.15/example815.sce b/67/CH8/EX8.15/example815.sce new file mode 100755 index 000000000..647a3af32 --- /dev/null +++ b/67/CH8/EX8.15/example815.sce @@ -0,0 +1,9 @@ +//Example 8.15 +//Obtain the DFT of x[n]=(a^n).u[n] +clc; +a=0.5; +for i=0:1:7 + x(i+1)=a.^i; +end +X=fft(x,-1); +disp(X,'X[k]='); \ No newline at end of file -- cgit