summaryrefslogtreecommitdiff
path: root/3547/CH9/EX9.1/EX9_1.sce
blob: c799bc44b181084f5a134a47a629d6163c8a0078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Example 9.1
// Calculation of the (a) the channel spacing, (b) the signal bandwidth in a channel and cther total bandwidth of the WDM signal, and (c) the total data rate.
// Page no 392

clc;
clear;
close;

//Given data
Bs=10*10^12;               // Symbol rate
n=6;                      // Spectral efficiency
Fs=10*10^12;              // Symbol rate
N=12;                    // No of channels



// (a) Channel spacing
B=Bs*log2(64);
f=B/n;

// (b) Total bandwidth of the WDM signal
T1=(N-1)*f+(2*Fs)/2; 
T1=T1*10^-12;
// (c) Total data rate
T2=N*B;
T2=T2*10^-12;

// Displaying results in the command window            
printf("\n Channel spacing = %0.0f GHz ",f*10^-12);

printf("\n Total bandwidth of the WDM signal = %0.0f GHz ",T1);
printf("\n Total data rate = %0.0f Gb/s ",T2);