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 /881/CH1 | |
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 '881/CH1')
-rwxr-xr-x | 881/CH1/EX1.1/exa1_1.sce | 20 | ||||
-rwxr-xr-x | 881/CH1/EX1.10/exa1_10.sce | 15 | ||||
-rwxr-xr-x | 881/CH1/EX1.11/exa1_11.sce | 27 | ||||
-rwxr-xr-x | 881/CH1/EX1.12/exa1_12.sce | 43 | ||||
-rwxr-xr-x | 881/CH1/EX1.13/exa1_13.sce | 6 | ||||
-rwxr-xr-x | 881/CH1/EX1.14/exa1_14.sce | 30 | ||||
-rwxr-xr-x | 881/CH1/EX1.15/exa1_15.sce | 16 | ||||
-rwxr-xr-x | 881/CH1/EX1.16/exa1_16.sce | 66 | ||||
-rwxr-xr-x | 881/CH1/EX1.17/exa1_17.sce | 19 | ||||
-rwxr-xr-x | 881/CH1/EX1.18/exa1_18.sce | 36 | ||||
-rwxr-xr-x | 881/CH1/EX1.3/exa1_3.sce | 23 | ||||
-rwxr-xr-x | 881/CH1/EX1.4/exa1_4.sce | 29 | ||||
-rwxr-xr-x | 881/CH1/EX1.5/exa1_5.sce | 60 | ||||
-rwxr-xr-x | 881/CH1/EX1.6/exa1_6.sce | 27 | ||||
-rwxr-xr-x | 881/CH1/EX1.7/exa1_7.sce | 8 | ||||
-rwxr-xr-x | 881/CH1/EX1.8/exa1_8.sce | 38 | ||||
-rwxr-xr-x | 881/CH1/EX1.9/exa1_9.sce | 16 |
17 files changed, 479 insertions, 0 deletions
diff --git a/881/CH1/EX1.1/exa1_1.sce b/881/CH1/EX1.1/exa1_1.sce new file mode 100755 index 000000000..eea8c0740 --- /dev/null +++ b/881/CH1/EX1.1/exa1_1.sce @@ -0,0 +1,20 @@ +clc +//Example 1.1 +//Page no 6 + +//Solution + +disp("Substituting into Eq 1.3 (ref pg no 4) yeilds,"); + +ap=10*log10(200); //absolute power ratio in dB + +disp('dB',ap,"The absolute power ratio is:"); + +//absolute ratio: 200 = 100 X 2" + +disp("Applying the product rule for logarithms, the power gain in dB is:"); + +Ap=10*log10(100)+10*log10(2); //power gain in dB + +//Result +disp('dB',Ap,"The power gain is, ") diff --git a/881/CH1/EX1.10/exa1_10.sce b/881/CH1/EX1.10/exa1_10.sce new file mode 100755 index 000000000..5c940c122 --- /dev/null +++ b/881/CH1/EX1.10/exa1_10.sce @@ -0,0 +1,15 @@ +clc; +//Example 1.10 +//Page no 22 + +//Solution + +disp("The formula T = C+273 is used to convert degree C into Kelvin. "); + +T1=100+273; +T2=0+273; +T3=-10+273; + +disp('K',T1,"(a) "); +disp('K',T2,"(b) "); +disp('K',T3,"(c) "); diff --git a/881/CH1/EX1.11/exa1_11.sce b/881/CH1/EX1.11/exa1_11.sce new file mode 100755 index 000000000..89a7faee8 --- /dev/null +++ b/881/CH1/EX1.11/exa1_11.sce @@ -0,0 +1,27 @@ +clc; +//Example 1.11 +//Page no 24 + +//Solution + +R=100; + +T=17+273; + +N=([1.38*(10^-23)]*[T]*[1*(10^4)]); + +disp('W',N,"N = "); + +disp("Substituting in equation 1-16 (refer pgno 23) give the noise power in dBm: "); + +N1=-174+[10*log10(10000)]; + +disp('dBm',N1,"N = "); + +//(b) + +disp("(b)The rms noise voltage is found by substituting into equation 1-17 (refer pgno 23): "); + +V=sqrt(4*R*N); + +disp('V',V,"Vn = "); diff --git a/881/CH1/EX1.12/exa1_12.sce b/881/CH1/EX1.12/exa1_12.sce new file mode 100755 index 000000000..412ec2e7e --- /dev/null +++ b/881/CH1/EX1.12/exa1_12.sce @@ -0,0 +1,43 @@ +clc; +//Example 1.12 +//Page no 25 + + +//Solution + +V1=8; +V2=0.2; +V3=0.1; + +//(a) + + +h1=2*1; + +disp('kHz',h1,"2nd harmonic = "); + +h2=3*1; + +disp('kHz',h2,"3rd harmonic = "); + +h3=12*1; + +disp('kHz',h3,"12th harmonic = "); + +//(b) + +disp("(b) ") + +p1=(V2/V1)*100; + +disp('%',p1,"%2nd order = "); + +p2=(V3/V1)*100; + +disp('%',p2,"%3nd order = "); + +THD=([sqrt((0.2^2)+(0.1^2)) ]/8)*100; + +disp('%',THD," Total harmonic distortion = "); + + diff --git a/881/CH1/EX1.13/exa1_13.sce b/881/CH1/EX1.13/exa1_13.sce new file mode 100755 index 000000000..affd43f36 --- /dev/null +++ b/881/CH1/EX1.13/exa1_13.sce @@ -0,0 +1,6 @@ +clc; +//Example 1.13 +//Page no 26 + +//Theory + diff --git a/881/CH1/EX1.14/exa1_14.sce b/881/CH1/EX1.14/exa1_14.sce new file mode 100755 index 000000000..bac9edc78 --- /dev/null +++ b/881/CH1/EX1.14/exa1_14.sce @@ -0,0 +1,30 @@ +clc; +//Example 1.14 +//Page no 27 + + +//solution: + +//(a) +disp("Given B=100MHZ, S/N= 30dB = 1000"); + + + +B=(100*(10^6)); +Sn=1000; + +I=3.32*B*log10(Sn+1); + +disp('bps',I,"I = "); + +//(b) + +disp("(b)If the SNR is increased by 4 times, the new") + +SNR=Sn*4; + +disp(SNR,"SNR = "); + +i=3.32*B*log10(SNR+1); + +disp('bps',i,"Therefore, the new information carrying capactiy is ") diff --git a/881/CH1/EX1.15/exa1_15.sce b/881/CH1/EX1.15/exa1_15.sce new file mode 100755 index 000000000..b5562ecfa --- /dev/null +++ b/881/CH1/EX1.15/exa1_15.sce @@ -0,0 +1,16 @@ +clc; +//Example 1.15 +//Page no 28 + + +//solution + +v1=4; + +v2=0.005; + + + +sn=20*log10(v1/v2); + +disp('dB',sn,"S/N = "); diff --git a/881/CH1/EX1.16/exa1_16.sce b/881/CH1/EX1.16/exa1_16.sce new file mode 100755 index 000000000..24351d77b --- /dev/null +++ b/881/CH1/EX1.16/exa1_16.sce @@ -0,0 +1,66 @@ +clc; +//Example 1.16 +//Page no 30 + + +disp("Given: For a non ideal amplifier and the following parameters "); +disp("Input signal power = 2 x 10^-10 W"); +disp("Input noise power = 2 x 10^-18 W"); +disp("Power Gain = 1 x 10^6"); +disp("Internal noise = 6 x 10^-12 W"); + +//Solution + +ip=2*(10^-10); + +in=2*(10^-18); + +G=1*(10^6); + +Nd= 6*(10^-12); + +//(a) + + +sn=(ip/in); + +SN=10*log10(round(sn)); + +disp('dB',round(SN),"S/N = "); + +//(b) + +disp("(b)The output noise power is the sum of the internal noise and the amplified input noise, therefore "); + +No=(G*in)+Nd; + +disp('W',No,"Nout = "); + +disp("The output power is simply the product of the input power and the power gain. "); + +Po=G*ip; + +disp('W',Po,"Pout = "); + +disp("For the output signal and noise power levels calculated and substituting in equation 1-22, the output S/N is "); + +sn1=(Po/No); + +SN1=10*log10(round(sn1)); + +disp('dB',round(SN1),"S/N = "); + +//(C) + +disp("(c)The noise factor is found by substituting the result from step (a) and (b) into equation 1-25 "); + +F=([round(sn)]/[round(sn1)]); + +disp(F,"F = "); + +disp("and the noise figure is calculated from equation 1-26(refer pgno 25) "); + +NF=10*log10(round(F)); + +disp('dB',round(NF),"NF = "); + diff --git a/881/CH1/EX1.17/exa1_17.sce b/881/CH1/EX1.17/exa1_17.sce new file mode 100755 index 000000000..4d647e1f6 --- /dev/null +++ b/881/CH1/EX1.17/exa1_17.sce @@ -0,0 +1,19 @@ +clc; +//Example 1.17 +//Page no 31 + + + +//solution + + + +ft=2+((2-1)/10)+([2-1]/100);//Noise factor + +disp(ft,"Ft = ") + +disp("Thus, the total noise figure is"); + +nft=10*log10(ft); + +disp('dB',nft,"NFt = ") diff --git a/881/CH1/EX1.18/exa1_18.sce b/881/CH1/EX1.18/exa1_18.sce new file mode 100755 index 000000000..3a738dffb --- /dev/null +++ b/881/CH1/EX1.18/exa1_18.sce @@ -0,0 +1,36 @@ +clc; +//Example 1.18 +//Page no 33 + +//solution + +//(a) + +Te=75; + +T=290; + + + +f=1+(Te/T);//Noise factor + +disp(f,"F = "); + +nf=10*log10(f); + +disp('dB',round(nf),"NF = "); + +//(b) + +disp("(b)Noise factor is found by rearranging equation 1-26 "); + +F=10^0.6; + +disp(round(F),"F = "); + +disp("substituting into equation 1-31 gives, ") + +te=T*(round(F)-1); + +disp('K',round(te),"Te = "); + diff --git a/881/CH1/EX1.3/exa1_3.sce b/881/CH1/EX1.3/exa1_3.sce new file mode 100755 index 000000000..fe7a43343 --- /dev/null +++ b/881/CH1/EX1.3/exa1_3.sce @@ -0,0 +1,23 @@ +clc; +//Example 1.3 +//Page no 8 + +//Solution + +//(a) + +dBm1=10*log10([500*(10^-3)]/[1*(10^-3)]); + +disp('dBm',dBm1,"(a) 500 mW in dbm = "); + +//(b) + +dBm2=10*log10([10*(10^-9)]/[1*(10^-3)]); + +disp('dBm',dBm2,"(b) 10 nW in dbm = "); + +//(c) + +dBm3=10*log10([100*(10^-6)]/[1*(10^-3)]); + +disp('dBm',dBm3,"(c) 100 uW in dbm = "); diff --git a/881/CH1/EX1.4/exa1_4.sce b/881/CH1/EX1.4/exa1_4.sce new file mode 100755 index 000000000..1c6c89326 --- /dev/null +++ b/881/CH1/EX1.4/exa1_4.sce @@ -0,0 +1,29 @@ +clc;
+//Example 1.4
+//Page no 8
+
+//Solution
+
+//(a)
+
+p1=(10^-2.7)*(10^-3);
+
+disp('W', p1,"-27dBm in absolute power is, ");
+
+//(b)
+
+p2=(10^1.3)*(10^-3);
+
+disp('W', p2,"13dBm in absolute power is, ");
+
+//(c)
+
+p3=(10^4)*(10^-3);
+
+disp('W', p3,"40dBm in absolute power is, ");
+
+//(d)
+
+p4=(10^-5.3)*(10^-3);
+
+disp('W', p4,"-53dBm in absolute power is, ");
diff --git a/881/CH1/EX1.5/exa1_5.sce b/881/CH1/EX1.5/exa1_5.sce new file mode 100755 index 000000000..242f27182 --- /dev/null +++ b/881/CH1/EX1.5/exa1_5.sce @@ -0,0 +1,60 @@ +clc; +//Example 1.5 +//Page no 9 + + + +pin=0.1*(10^-3); +ap1=100; +ap2=40; +ap3=0.25; + +//Solution + +//(a) + +disp("(a)The input power in dBm "); + +Pin=10*log10(pin/0.001); + +disp('dBm',Pin,"The input power in dBm is, "); + +//(b) + +disp("(b)The output power is simply the input power multiplied by the three power gains: "); + +Pout=(pin)*ap1*ap2*ap3; + +Pout1=10*log10(Pout/0.001); + +disp('dBm',Pout1,'W',Pout,"The output power in watts and dBm is,"); + +//(c) + +disp("(c)The decibel value for the three gains are determined by substituting into equation 1-3 (Pgno 4)"); + +Ap1=10*log10(ap1); + +disp('dB',Ap1,"Ap1 = "); + +Ap2=10*log10(ap2); + +disp('dB',Ap2,"Ap2 = "); + +Ap3=10*log10(ap3); + +disp('dB',Ap3,"Ap3 = "); + +//(d) + +disp("(d)The overall power gain in dB (Apr) can be determined by simply adding the individual dB power gains, "); + +Apr=Ap1+Ap2+Ap3; + +disp('dB',Apr,"Apr = "); + +disp("The output power in dBm is the input power in dBm plus the sum of the gains of the three stages: "); + +Pout2=Pin+Apr; + +disp('dBm',Pout2,"Pout = "); diff --git a/881/CH1/EX1.6/exa1_6.sce b/881/CH1/EX1.6/exa1_6.sce new file mode 100755 index 000000000..2bd3863ba --- /dev/null +++ b/881/CH1/EX1.6/exa1_6.sce @@ -0,0 +1,27 @@ +clc; +//Example 1.6 +//Page no 10 + + + +//Solution + +//(a) + +a=100*5 + +disp(a,"(a)Overall gain of the system is the product of the individual gain, that is "); + +ap=10*log10(a); + +disp('dB',ap,"Thus, the overall gain in dB is,") + +//(b) + +b=[100*(10^-6)]*500; + +disp('W',b,"(b)Output power = Input power to the system X Overall power gain, that is ") + +bp=10*log10(b/[1*(10^-3)]); + +disp('dBm', bp,"Therefore, Output power expressed in dB is, "); diff --git a/881/CH1/EX1.7/exa1_7.sce b/881/CH1/EX1.7/exa1_7.sce new file mode 100755 index 000000000..a8743455f --- /dev/null +++ b/881/CH1/EX1.7/exa1_7.sce @@ -0,0 +1,8 @@ +clc; +//Example 1.7 +//Page no 11 +//Solution + +a=21+2.5; + +disp('dBm',a,"The difference in the two power levels is 1 dB. Therefore, from table 1-5 , the combining term is 2.5 dB and the total power is, "); diff --git a/881/CH1/EX1.8/exa1_8.sce b/881/CH1/EX1.8/exa1_8.sce new file mode 100755 index 000000000..c0c2e8736 --- /dev/null +++ b/881/CH1/EX1.8/exa1_8.sce @@ -0,0 +1,38 @@ +clc;
+//Example 1.8
+//Page no 17
+
+//Solution
+
+//Refer to figure 1-5 on page no 17
+
+//(a)
+
+disp("(a)Medium Frequencies as per ITU-T range between 0.3MHz and 3MHz.");
+
+lm1=([3*(10^8)]/[0.3*(10^6)]);
+
+lm2=([3*(10^8)]/[3*(10^6)]);
+
+disp('m',lm2,'and','m',lm1,"Therefore, wavelengths range for MF are between ");
+
+//(b)
+
+disp("(b)Ultra High Frequencies as per ITU-T range between 300MHz and 3GHz.");
+
+lm3=([3*(10^8)]/[300*(10^6)]);
+
+lm4=([3*(10^8)]/[3*(10^9)]);
+
+disp('m',lm4,'and','m',lm3,"Therefore, wavelengths range for UHF are between ");
+
+//(c)
+
+disp("(c)Very High Frequencies as per ITU-T range between 30MHz and 300Mz.");
+
+lm5=([3*(10^8)]/[30*(10^6)]);
+
+lm6=([3*(10^8)]/[300*(10^6)]);
+
+disp('m',lm6,'and','m',lm5,"Therefore, wavelengths range for VHF are between ");
+
diff --git a/881/CH1/EX1.9/exa1_9.sce b/881/CH1/EX1.9/exa1_9.sce new file mode 100755 index 000000000..315f304f7 --- /dev/null +++ b/881/CH1/EX1.9/exa1_9.sce @@ -0,0 +1,16 @@ +clc; +//Example 1.9 +//Page no 20 + + + +//Solution + +disp("The Shannon limit for capacity is determined by substituting into equation 1-12b"); + +I=(3.32)*(2700)*log10(1+1000); + +disp('bps',I); + + + |