summaryrefslogtreecommitdiff
path: root/3542/CH6/EX6.8/Ex6_8.sce
blob: 8f7b93ac7eddf59ea9f735266290bf7888552168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Example no 6.8
// To find the first zero-crossing RF bandwidth of rectangular pulse and compare to raised cosine filter pulse
// Page no. 291

clc;
clear all;

// Given data
RectTs=41.06*10^-6;                                             // Symbol period of rectangular pulse
cosineTs=41.06*10^-6;                                           // Symbol period of cosine filter pulse
alpha=0.35;                                                     // Rolloff factor of cosine filter pulse

// To find the first zero-crossing RF bandwidth of rectangular pulse
B1=2/RectTs;                                                    // The first zero-crossing RF bandwidth of rectangular pulse

// The first zero-crossing RF bandwidth of cosine filter pulse
B2=(1/cosineTs)*(1+alpha);                                      // The first zero-crossing RF bandwidth of cosine filter pulse

// Displaying the result in command window
printf('\n The first zero-crossing RF bandwidth of rectangular pulse = %0.2f kHz',B1*10^-3);
printf('\n The first zero-crossing RF bandwidth of cosine filter pulse = %0.2f kHz',B2*10^-3);