summaryrefslogtreecommitdiff
path: root/992/CH9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /992/CH9
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 '992/CH9')
-rwxr-xr-x992/CH9/EX9.1/Ex9_1.sce13
-rwxr-xr-x992/CH9/EX9.1/ex9_1.txt13
-rwxr-xr-x992/CH9/EX9.1/ex9_1ans.txt5
-rwxr-xr-x992/CH9/EX9.2/Ex9_2.sce16
-rwxr-xr-x992/CH9/EX9.2/ex9_2.txt16
-rwxr-xr-x992/CH9/EX9.2/ex9_2ans.txt6
-rwxr-xr-x992/CH9/EX9.3/Ex9_3.sce14
-rwxr-xr-x992/CH9/EX9.3/ex9_3.txt14
-rwxr-xr-x992/CH9/EX9.3/ex9_3ans.txt4
-rwxr-xr-x992/CH9/EX9.4/Ex9_4.sce14
-rwxr-xr-x992/CH9/EX9.4/ex9_4.txt14
-rwxr-xr-x992/CH9/EX9.4/ex9_4ans.txt4
-rwxr-xr-x992/CH9/EX9.5/Ex9_5.sce11
-rwxr-xr-x992/CH9/EX9.5/ex9_5.txt11
-rwxr-xr-x992/CH9/EX9.5/ex9_5ans.txt4
-rwxr-xr-x992/CH9/EX9.6/Ex9_6.sce11
-rwxr-xr-x992/CH9/EX9.6/ex9_6.txt11
-rwxr-xr-x992/CH9/EX9.6/ex9_6ans.txt5
-rwxr-xr-x992/CH9/EX9.7/Ex9_7.sce14
-rwxr-xr-x992/CH9/EX9.7/ex9_7.txt14
-rwxr-xr-x992/CH9/EX9.7/ex9_7ans.txt3
-rwxr-xr-x992/CH9/EX9.8/Ex9_8.sce12
-rwxr-xr-x992/CH9/EX9.8/ex9_8.txt12
-rwxr-xr-x992/CH9/EX9.8/ex9_8ans.txt2
-rwxr-xr-x992/CH9/EX9.9/Ex9_9.sce13
-rwxr-xr-x992/CH9/EX9.9/ex9_9.txt13
-rwxr-xr-x992/CH9/EX9.9/ex9_9ans.txt3
27 files changed, 272 insertions, 0 deletions
diff --git a/992/CH9/EX9.1/Ex9_1.sce b/992/CH9/EX9.1/Ex9_1.sce
new file mode 100755
index 000000000..06398b905
--- /dev/null
+++ b/992/CH9/EX9.1/Ex9_1.sce
@@ -0,0 +1,13 @@
+
+//Exa:9.1
+clc;
+clear;
+close;
+//Given:
+Fm=80;//in MHz
+Fc=60;//in MHz
+Fb=20;//in Mbps
+MI=(Fm-Fc)/Fb;
+printf("\n Modulation index is = %f",MI);
+printf("\n Minimum required bandwidth = %fMHz",Fc);
+printf("\n Baud rate = %fMegabaud",Fb); \ No newline at end of file
diff --git a/992/CH9/EX9.1/ex9_1.txt b/992/CH9/EX9.1/ex9_1.txt
new file mode 100755
index 000000000..bae94e456
--- /dev/null
+++ b/992/CH9/EX9.1/ex9_1.txt
@@ -0,0 +1,13 @@
+//Caption:Program to determine output band and minimum required bandwidth.
+//Exa:9.1
+clc;
+clear;
+close;
+//Given:
+Fm=80;//in MHz
+Fc=60;//in MHz
+Fb=20;//in Mbps
+MI=(Fm-Fc)/Fb;
+printf("\n Modulation index is = %f",MI);
+printf("\n Minimum required bandwidth = %fMHz",Fc);
+printf("\n Baud rate = %fMegabaud",Fb); \ No newline at end of file
diff --git a/992/CH9/EX9.1/ex9_1ans.txt b/992/CH9/EX9.1/ex9_1ans.txt
new file mode 100755
index 000000000..53c2ce80b
--- /dev/null
+++ b/992/CH9/EX9.1/ex9_1ans.txt
@@ -0,0 +1,5 @@
+
+ Modulation index is = 1.000000
+ Minimum required bandwidth = 60.000000MHz
+ Baud rate = 20.000000Megabaud
+ Execution done.
diff --git a/992/CH9/EX9.2/Ex9_2.sce b/992/CH9/EX9.2/Ex9_2.sce
new file mode 100755
index 000000000..ff094cbaa
--- /dev/null
+++ b/992/CH9/EX9.2/Ex9_2.sce
@@ -0,0 +1,16 @@
+
+//Exa:9.2
+clc;
+clear;
+close;
+//Given:
+//Output = (sin(wa)t)(sin(wc)t)
+// =[sin(2pi5*10^6t)][sin(2pi70*10^6t)]
+// =1/2[cos(2pi*65*10^6t)-cos(2pi*75*10^6t)] `
+w1=65;//in MHz
+w2=75;//in MHz
+F=w2-w1;
+printf("\n Minimum lower side frequecy = %fMHz",w1);
+printf("\n Maximum upper side frequency = %fMHz",w2);
+printf("\n Minimum nyquist bandwidth = %fMHz",F);
+printf("\n Baud rate = %fMegabaud",F); \ No newline at end of file
diff --git a/992/CH9/EX9.2/ex9_2.txt b/992/CH9/EX9.2/ex9_2.txt
new file mode 100755
index 000000000..1586d7b75
--- /dev/null
+++ b/992/CH9/EX9.2/ex9_2.txt
@@ -0,0 +1,16 @@
+//Caption:Program to determine output band and minimum required bandwidth.
+//Exa:9.2
+clc;
+clear;
+close;
+//Given:
+//Output = (sin(wa)t)(sin(wc)t)
+// =[sin(2pi5*10^6t)][sin(2pi70*10^6t)]
+// =1/2[cos(2pi*65*10^6t)-cos(2pi*75*10^6t)] `
+w1=65;//in MHz
+w2=75;//in MHz
+F=w2-w1;
+printf("\n Minimum lower side frequecy = %fMHz",w1);
+printf("\n Maximum upper side frequency = %fMHz",w2);
+printf("\n Minimum nyquist bandwidth = %fMHz",F);
+printf("\n Baud rate = %fMegabaud",F); \ No newline at end of file
diff --git a/992/CH9/EX9.2/ex9_2ans.txt b/992/CH9/EX9.2/ex9_2ans.txt
new file mode 100755
index 000000000..148d50d12
--- /dev/null
+++ b/992/CH9/EX9.2/ex9_2ans.txt
@@ -0,0 +1,6 @@
+
+ Minimum lower side frequecy = 65.000000MHz
+ Maximum upper side frequency = 75.000000MHz
+ Minimum nyquist bandwidth = 10.000000MHz
+ Baud rate = 10.000000Megabaud
+ Execution done.
diff --git a/992/CH9/EX9.3/Ex9_3.sce b/992/CH9/EX9.3/Ex9_3.sce
new file mode 100755
index 000000000..a3470eed8
--- /dev/null
+++ b/992/CH9/EX9.3/Ex9_3.sce
@@ -0,0 +1,14 @@
+
+//Exa:9.3
+clc;
+clear;
+close;
+//Given:
+Bw=4000;//in Hz
+nQl=128;//i.e. =2^7;//quantizing levels
+NyqR=2*Bw;
+n=7;
+Total_bpersmple=8;
+total_smples=NyqR*Total_bpersmple;
+printf("\n nyquist sampling rate = %fHz",NyqR);
+printf("\n Bit rate = %fKb/sec",total_smples); \ No newline at end of file
diff --git a/992/CH9/EX9.3/ex9_3.txt b/992/CH9/EX9.3/ex9_3.txt
new file mode 100755
index 000000000..1562a2af5
--- /dev/null
+++ b/992/CH9/EX9.3/ex9_3.txt
@@ -0,0 +1,14 @@
+//Caption:Program to determine bitrate.
+//Exa:9.3
+clc;
+clear;
+close;
+//Given:
+Bw=4000;//in Hz
+nQl=128;//i.e. =2^7;//quantizing levels
+NyqR=2*Bw;
+n=7;
+Total_bpersmple=8;
+total_smples=NyqR*Total_bpersmple;
+printf("\n nyquist sampling rate = %fHz",NyqR);
+printf("\n Bit rate = %fKb/sec",total_smples); \ No newline at end of file
diff --git a/992/CH9/EX9.3/ex9_3ans.txt b/992/CH9/EX9.3/ex9_3ans.txt
new file mode 100755
index 000000000..33cd8340d
--- /dev/null
+++ b/992/CH9/EX9.3/ex9_3ans.txt
@@ -0,0 +1,4 @@
+
+ nyquist sampling rate = 8000.000000Hz
+ Bit rate = 64000.000000Kb/sec
+ Execution done.
diff --git a/992/CH9/EX9.4/Ex9_4.sce b/992/CH9/EX9.4/Ex9_4.sce
new file mode 100755
index 000000000..697de7a24
--- /dev/null
+++ b/992/CH9/EX9.4/Ex9_4.sce
@@ -0,0 +1,14 @@
+
+//Exa:9.4
+clc;
+clear;
+close;
+//Given:
+Pe=10^-5;
+v=0.5;
+n=2*10^-6;
+x=3.02;//at erfc(x)=2*10^-5 at x=3.02
+T=(x^2*n)/(4*v^2);
+B=1/T;
+printf("\n Minimum Time Period= %f 10^-6",T*10^6);
+printf("\n Maximum Bit rate = %fKb/sec",B/10^3); \ No newline at end of file
diff --git a/992/CH9/EX9.4/ex9_4.txt b/992/CH9/EX9.4/ex9_4.txt
new file mode 100755
index 000000000..defaf699c
--- /dev/null
+++ b/992/CH9/EX9.4/ex9_4.txt
@@ -0,0 +1,14 @@
+//Caption:Program to determine maximum value of bitrate.
+//Exa:9.4
+clc;
+clear;
+close;
+//Given:
+Pe=10^-5;
+v=0.5;
+n=2*10^-6;
+x=3.02;//at erfc(x)=2*10^-5 at x=3.02
+T=(x^2*n)/(4*v^2);
+B=1/T;
+printf("\n Minimum Time Period= %f 10^-6",T*10^6);
+printf("\n Maximum Bit rate = %fKb/sec",B/10^3); \ No newline at end of file
diff --git a/992/CH9/EX9.4/ex9_4ans.txt b/992/CH9/EX9.4/ex9_4ans.txt
new file mode 100755
index 000000000..3c6683319
--- /dev/null
+++ b/992/CH9/EX9.4/ex9_4ans.txt
@@ -0,0 +1,4 @@
+
+ Minimum Time Period= 18.240800 10^-6
+ Maximum Bit rate = 54.822157Kb/sec
+ Execution done.
diff --git a/992/CH9/EX9.5/Ex9_5.sce b/992/CH9/EX9.5/Ex9_5.sce
new file mode 100755
index 000000000..86b460e77
--- /dev/null
+++ b/992/CH9/EX9.5/Ex9_5.sce
@@ -0,0 +1,11 @@
+
+//Exa:9.5
+clc;
+clear;
+close;
+//Given:
+//v1(t)=10cos(2000*pi*t)+4sin(200*pi*t);
+//BPF=800Hz to 1200Hz
+printf("Since v2=v1+0.1*v1^2 and");
+printf("\n BPF=800Hz to 1200Hz ");
+printf("\n So,v3(t)=10*cos(2000*pi*t)+4*sin(2200*pi*t)-4*sin(1800*pi*t)"); \ No newline at end of file
diff --git a/992/CH9/EX9.5/ex9_5.txt b/992/CH9/EX9.5/ex9_5.txt
new file mode 100755
index 000000000..1cac432bc
--- /dev/null
+++ b/992/CH9/EX9.5/ex9_5.txt
@@ -0,0 +1,11 @@
+//Caption:Program to determine expression for signal.
+//Exa:9.5
+clc;
+clear;
+close;
+//Given:
+//v1(t)=10cos(2000*pi*t)+4sin(200*pi*t);
+//BPF=800Hz to 1200Hz
+printf("Since v2=v1+0.1*v1^2 and");
+printf("\n BPF=800Hz to 1200Hz ");
+printf("\n So,v3(t)=10*cos(2000*pi*t)+4*sin(2200*pi*t)-4*sin(1800*pi*t)"); \ No newline at end of file
diff --git a/992/CH9/EX9.5/ex9_5ans.txt b/992/CH9/EX9.5/ex9_5ans.txt
new file mode 100755
index 000000000..ac2f1decf
--- /dev/null
+++ b/992/CH9/EX9.5/ex9_5ans.txt
@@ -0,0 +1,4 @@
+ Since v2=v1+0.1*v1^2 and
+ BPF=800Hz to 1200Hz
+ So,v3(t)=10*cos(2000*pi*t)+4*sin(2200*pi*t)-4*sin(1800*pi*t)
+ Execution done.
diff --git a/992/CH9/EX9.6/Ex9_6.sce b/992/CH9/EX9.6/Ex9_6.sce
new file mode 100755
index 000000000..fd38d2e94
--- /dev/null
+++ b/992/CH9/EX9.6/Ex9_6.sce
@@ -0,0 +1,11 @@
+
+//Exa:9.6
+clc;
+clear;
+close;
+//Given:
+Ts=3;//in dB
+fs=1/Ts;
+printf("\n Ms(f)=p(f)[fs*sigma{M(f-Kfs)}]");
+printf("\n 1/(1/30B)*integ(Ae^-j2*pi*f*t)dt from -60dB to 60dB");
+printf("\n AsinC(2*pi*f/60B)"); \ No newline at end of file
diff --git a/992/CH9/EX9.6/ex9_6.txt b/992/CH9/EX9.6/ex9_6.txt
new file mode 100755
index 000000000..b09dfae57
--- /dev/null
+++ b/992/CH9/EX9.6/ex9_6.txt
@@ -0,0 +1,11 @@
+//Caption:Program to print expression for frequency spectrum.
+//Exa:9.6
+clc;
+clear;
+close;
+//Given:
+Ts=3;//in dB
+fs=1/Ts;
+printf("\n Ms(f)=p(f)[fs*sigma{M(f-Kfs)}]");
+printf("\n 1/(1/30B)*integ(Ae^-j2*pi*f*t)dt from -60dB to 60dB");
+printf("\n AsinC(2*pi*f/60B)"); \ No newline at end of file
diff --git a/992/CH9/EX9.6/ex9_6ans.txt b/992/CH9/EX9.6/ex9_6ans.txt
new file mode 100755
index 000000000..8c75fdd0f
--- /dev/null
+++ b/992/CH9/EX9.6/ex9_6ans.txt
@@ -0,0 +1,5 @@
+
+ Ms(f)=p(f)[fs*sigma{M(f-Kfs)}]
+ 1/(1/30B)*integ(Ae^-j2*pi*f*t)dt from -60dB to 60dB
+ AsinC(2*pi*f/60B)
+ Execution done.
diff --git a/992/CH9/EX9.7/Ex9_7.sce b/992/CH9/EX9.7/Ex9_7.sce
new file mode 100755
index 000000000..fe80187c2
--- /dev/null
+++ b/992/CH9/EX9.7/Ex9_7.sce
@@ -0,0 +1,14 @@
+
+//Exa:9.7
+clc;
+clear;
+close;
+//Given:
+c=3500;
+b=60000;
+l=b/2/c;
+M=2^l;
+Vrms=0.2;//in volts
+s=4/M;
+SQNR=20*[log10(Vrms/s)]+10*log10(12);
+printf("\nThe signal to quantisation ratio is(SQNR)=%fdB",SQNR); \ No newline at end of file
diff --git a/992/CH9/EX9.7/ex9_7.txt b/992/CH9/EX9.7/ex9_7.txt
new file mode 100755
index 000000000..e29e250d1
--- /dev/null
+++ b/992/CH9/EX9.7/ex9_7.txt
@@ -0,0 +1,14 @@
+//Caption:Program to determine maximum signal to quantisation noise ratio.
+//Exa:9.7
+clc;
+clear;
+close;
+//Given:
+c=3500;
+b=60000;
+l=b/2/c;
+M=2^l;
+Vrms=0.2;//in volts
+s=4/M;
+SQNR=20*[log10(Vrms/s)]+10*log10(12);
+printf("\nThe signal to quantisation ratio is(SQNR)=%f",SQNR); \ No newline at end of file
diff --git a/992/CH9/EX9.7/ex9_7ans.txt b/992/CH9/EX9.7/ex9_7ans.txt
new file mode 100755
index 000000000..c14b23b30
--- /dev/null
+++ b/992/CH9/EX9.7/ex9_7ans.txt
@@ -0,0 +1,3 @@
+
+The signal to quantisation ratio is(SQNR)=36.376355dB
+ Execution done.
diff --git a/992/CH9/EX9.8/Ex9_8.sce b/992/CH9/EX9.8/Ex9_8.sce
new file mode 100755
index 000000000..17a670eb6
--- /dev/null
+++ b/992/CH9/EX9.8/Ex9_8.sce
@@ -0,0 +1,12 @@
+
+//Exa:9.8
+clc;
+clear;
+close;
+//Given:
+SQNR=20;
+Nq=3*10^-4;//in Watts
+S=sqrt(12*3*10^-4);
+M=(3.8+3.8)/S;//-3.8V to 3.8V signal variation
+n=log2(M);
+printf("Number of bits per sample %f",n);
diff --git a/992/CH9/EX9.8/ex9_8.txt b/992/CH9/EX9.8/ex9_8.txt
new file mode 100755
index 000000000..5afb18723
--- /dev/null
+++ b/992/CH9/EX9.8/ex9_8.txt
@@ -0,0 +1,12 @@
+//Caption:Program to number of bits required per sample,minimum bandwidth for multiplexed signal.
+//Exa:9.8
+clc;
+clear;
+close;
+//Given:
+SQNR=20;
+Nq=3*10^-4;//in Watts
+S=sqrt(12*3*10^-4);
+M=(3.8+3.8)/S;//-3.8V to 3.8V signal variation
+n=log2(M);
+printf("Number of bits per sample %f",n); \ No newline at end of file
diff --git a/992/CH9/EX9.8/ex9_8ans.txt b/992/CH9/EX9.8/ex9_8ans.txt
new file mode 100755
index 000000000..a9cdfeaf5
--- /dev/null
+++ b/992/CH9/EX9.8/ex9_8ans.txt
@@ -0,0 +1,2 @@
+ Number of bits per sample 6.984893
+ Execution done.
diff --git a/992/CH9/EX9.9/Ex9_9.sce b/992/CH9/EX9.9/Ex9_9.sce
new file mode 100755
index 000000000..b1b4c4f22
--- /dev/null
+++ b/992/CH9/EX9.9/Ex9_9.sce
@@ -0,0 +1,13 @@
+
+//Exa:9.9
+clc;
+clear;
+close;
+//Given:
+SNR=32;
+Actual_snr=10^(SNR/10);
+w1=300;//in Hz
+w2=3400;//in Hz
+w=w2-w1;
+c=w*log2(1+Actual_snr);
+printf("\n Capacity=%f bits/sec",c); \ No newline at end of file
diff --git a/992/CH9/EX9.9/ex9_9.txt b/992/CH9/EX9.9/ex9_9.txt
new file mode 100755
index 000000000..9038b7cee
--- /dev/null
+++ b/992/CH9/EX9.9/ex9_9.txt
@@ -0,0 +1,13 @@
+//Caption:Program to calculate the capacity of a standard telephone channel.
+//Exa:9.9
+clc;
+clear;
+close;
+//Given:
+SNR=32;
+Actual_snr=10^(SNR/10);
+w1=300;//in Hz
+w2=3400;//in Hz
+w=w2-w1;
+c=w*log2(1+Actual_snr);
+printf("\n Capacity=%f bits/sec",c); \ No newline at end of file
diff --git a/992/CH9/EX9.9/ex9_9ans.txt b/992/CH9/EX9.9/ex9_9ans.txt
new file mode 100755
index 000000000..89e6ade42
--- /dev/null
+++ b/992/CH9/EX9.9/ex9_9ans.txt
@@ -0,0 +1,3 @@
+
+ Capacity=32956.347676 bits/sec
+ Execution done.