summaryrefslogtreecommitdiff
path: root/3542/CH7/EX7.3/Ex7_3.sce
blob: b2c673e7bc5b6e2c4e264157332b2511b4261668 (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
// Example no 7.3
// To determine a)the maximum Doppler shift b)the coherence time of the channel c)the maximum number of symbolsthat could be transmitted
// Page no. 373

clc;
clear all;

//Given data
f=900*10^6;                                                  // Carrier frequency in Hz
c=3*10^8;                                                    // Speed of ligth in air (m/s)
v=80;                                                        // Velocity of mobile in km/hr
v=v*(5/18);                                                  // Velocity of mobile in m/s
lambda=c/f;                                                  // Carrier wavelength in meter

// a)To determine the maximum Doppler shift
fd=v/lambda;                                                 // The maximum Doppler shift in Hz

// b)To determine the coherence time of the channel
Tc=sqrt(9/(16*%pi*fd^2));                                   // The coherence time of the channel
// Answer is varrying due to round-off error

// c)To determine the maximum number of symbols that could be transmitted with symbol rate 24.3 ksymbols/sec
Rs=24.3*10^3;                                              // Symbol rate in symbols/sec
Nb=Tc*Rs;                                                  // The maximum number of transmitted symbols

// Displaying the result in command window
printf('\n The maximum Doppler shift = %0.2f Hz',fd);
printf('\n The coherence time of the channel = %0.2f ms',Tc*10^3);
printf('\n The maximum number of symbols that could be transmitted with symbol rate 24.3 ksymbols/sec = %0.0f symbols',Nb);