summaryrefslogtreecommitdiff
path: root/830/CH6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /830/CH6
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '830/CH6')
-rwxr-xr-x830/CH6/EX6.11/FFT_Exercise2.sce11
-rwxr-xr-x830/CH6/EX6.4.1/SNR_DFT.sce14
-rwxr-xr-x830/CH6/EX6.4.2/SNR_FFT_ALGORITHM.sce14
-rwxr-xr-x830/CH6/EX6.8/FFT_Exercise1.sce11
4 files changed, 50 insertions, 0 deletions
diff --git a/830/CH6/EX6.11/FFT_Exercise2.sce b/830/CH6/EX6.11/FFT_Exercise2.sce
new file mode 100755
index 000000000..2c91dc443
--- /dev/null
+++ b/830/CH6/EX6.11/FFT_Exercise2.sce
@@ -0,0 +1,11 @@
+//Graphical//
+//Exercise 6.11
+//Program to Calculate DFT using DIF-FFT algorithm
+//x[n]= [1/2,1/2,1/2,1/2,0,0,0,0]
+clear;
+clc;
+close;
+x = [1/2,1/2,1/2,1/2,0,0,0,0];
+X = fft(x,-1)
+//Inverse FFT
+x_inv = real(fft(X,1))
diff --git a/830/CH6/EX6.4.1/SNR_DFT.sce b/830/CH6/EX6.4.1/SNR_DFT.sce
new file mode 100755
index 000000000..e48aba672
--- /dev/null
+++ b/830/CH6/EX6.4.1/SNR_DFT.sce
@@ -0,0 +1,14 @@
+//Graphical//
+//Example 6.4.1
+//Program to Calculate No.of bits required for given
+//Signal to Quantization Noise Ratio
+//in computing DFT
+clear;
+clc;
+close;
+N = 1024;
+SQNR = 30; //SQNR = 30 dB
+v = log2(N); //number of stages
+b = (log2(10^(SQNR/10))+2*v)/2;
+b = ceil(b)
+disp(b,'The number of bits required rounded to:')
diff --git a/830/CH6/EX6.4.2/SNR_FFT_ALGORITHM.sce b/830/CH6/EX6.4.2/SNR_FFT_ALGORITHM.sce
new file mode 100755
index 000000000..2fbdf5563
--- /dev/null
+++ b/830/CH6/EX6.4.2/SNR_FFT_ALGORITHM.sce
@@ -0,0 +1,14 @@
+//Graphical//
+//Example 6.4.2
+//Program to Calculate No.of bits required for given
+//Signal to Quantization Noise Ratio
+//in FFT algorithm
+clear;
+clc;
+close;
+N = 1024;
+SQNR = 30; //SQNR = 30 dB
+v = log2(N); //number of stages
+b = (log2(10^(SQNR/10))+v+1)/2;
+b = ceil(b)
+disp(b,'The number of bits required rounded to:')
diff --git a/830/CH6/EX6.8/FFT_Exercise1.sce b/830/CH6/EX6.8/FFT_Exercise1.sce
new file mode 100755
index 000000000..54ed73fe4
--- /dev/null
+++ b/830/CH6/EX6.8/FFT_Exercise1.sce
@@ -0,0 +1,11 @@
+//Graphical//
+//Exercise 6.8
+//Program to Calculate DFT using DIF-FFT algorithm
+//x[n]= 1, 0<=n<=7
+clear;
+clc;
+close;
+x = [1,1,1,1,1,1,1,1];
+X = fft(x,-1)
+//Inverse FFT
+x_inv = real(fft(X,1))