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 /401/CH11/EX11.3 | |
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 '401/CH11/EX11.3')
-rwxr-xr-x | 401/CH11/EX11.3/Example11_3.sce | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/401/CH11/EX11.3/Example11_3.sce b/401/CH11/EX11.3/Example11_3.sce new file mode 100755 index 000000000..cd9331044 --- /dev/null +++ b/401/CH11/EX11.3/Example11_3.sce @@ -0,0 +1,71 @@ +//Example 11.3
+//Program to design a wavelength channel plan for an 8 band, 32
+//channel dense WDM Interleaver Waveband Filter. Also to determine:
+//(a)Total No. of channel required for each interleaver band filter
+//(b)The overall bandwidth of the filter in each case
+
+clear;
+clc ;
+close ;
+
+//Given data
+number_of_bands=8;
+M=4; //TOTAL NUMBER OF CHANNELS IN EACH BAND
+
+//(a)Total No. of channel required for each interleaver band filter
+//(i)N=0
+N=0;
+Cskip0=(number_of_bands-1)*N;
+Ctotal0=number_of_bands*M+Cskip0;
+//Displaying the Result in Command Window
+printf("\n\n\t (a)(i)For 4-skip-0, Ctotal = %d.",Ctotal0);
+
+//(ii)N=1
+N=1;
+Cskip1=(number_of_bands-1)*N;
+Ctotal1=number_of_bands*M+Cskip1;
+//Displaying the Result in Command Window
+printf("\n\n\t (ii)For 4-skip-1, Ctotal = %d.",Ctotal1);
+
+//(iii)N=2
+N=2;
+Cskip2=(number_of_bands-1)*N;
+Ctotal2=number_of_bands*M+Cskip2;
+//Displaying the Result in Command Window
+printf("\n\n\t (iii)For 4-skip-2, Ctotal = %d.",Ctotal2);
+
+//Generation of Table 11.1
+printf("\n\n\t\t TABLE 11.1:WAVELENFTH CHANNEL PLAN");
+W1=1552.52; //nm - WAVELENGTH FOR 1 CHANNEL
+printf("\n\n\t\t (i)4-skip-0");
+for i = 0:Ctotal0-1
+printf("\n\t Number of Channels = %d, Wavelength = %0.2f nm.",i+1,W1+0.8*i);
+end
+printf("\n\n\t\t (ii)4-skip-1");
+for i = 0:Ctotal1-1
+printf("\n\t Number of Channels = %d, Wavelength = %0.2f nm.",i+1,W1+0.8*i);
+end
+printf("\n\n\t\t (iii)4-skip-2");
+for i = 0:Ctotal2-1
+printf("\n\t Number of Channels = %d, Wavelength = %0.2f nm.",i+1,W1+0.8*i);
+end
+
+//(b)The overall bandwidth of the filter in each case taking values
+//from Table 11.1
+//(i)N=0
+W2=1577.32; //nm - WAVELENGTH FOR 32 CHANNELS
+BW=W2-W1;
+//Displaying the Result in Command Window
+printf("\n\n\n\t (b)(i)For 4-skip-0, Filter Bandwidth = %0.1f nm.",BW);
+
+//(ii)N=1
+W2=1582.92; //nm - WAVELENGTH FOR 39 CHANNELS
+BW=W2-W1;
+//Displaying the Result in Command Window
+printf("\n\n\t (ii)For 4-skip-1, Filter Bandwidth = %0.1f nm.",BW);
+
+//(iii)N=2
+W2=1588.52; //nm - WAVELENGTH FOR 46 CHANNELS
+BW=W2-W1;
+//Displaying the Result in Command Window
+printf("\n\n\t (iii)For 4-skip-2, Filter Bandwidth = %0.1f nm.",BW);
\ No newline at end of file |