blob: 0533e3f3e413c11bab484fc614d3bd8fc265dc3e (
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
34
35
36
37
|
// Example no 5.1
// To compute received carrier frequency if mobile is moving a)towards the transmitter b)away from the transmitter c)in the direction perpendicular to arrival direction of transmitted signal
// Page no. 180
clc;
clear all;
// Given data
fc=1850*10^6; // Carrier frequency in Hz
c=3*10^8; // Speed of ligth in m/s
v=60; // Speed of receiver (vehicle) in mph
v=v*0.44704; // Speed of receiver (vehicle) in m/s
lambda=0.162;//c/f; // Wavelength in m
// a)To compute received carrier frequency if mobile is moving towards the transmitter
theta=0; // Angle between direction of receiver and transmitter
fd=(v/lambda)*cos(theta); // Doppler shift
f=(fc+fd)*10^-6; // Received carrier frequency in MHz
// Displaying the result in command window
printf('\n The received carrier frequency when mobile is moving towards the transmitter = %0.5f MHz',f);
// b)To compute received carrier frequency if mobile is moving away from the transmitter
theta=180; // Angle between direction of receiver and transmitter
fd=(v/lambda)*cos(theta); // Doppler shift
f=(fc+fd)*10^-6; // Received carrier frequency in MHz
// Displaying the result in command window
printf('\n The received carrier frequency when mobile is moving away from the transmitter = %0.6f MHz',f);
// c)To compute received carrier frequency if mobile is moving in the direction perpendicular to arrival direction of transmitted signal
theta=90; // Angle between direction of receiver and transmitter
fd=(v/lambda)*cos(theta); // Doppler shift
f=(fc+fd)*10^-6; // Received carrier frequency in MHz
// Displaying the result in command window
printf('\n The received carrier frequency when mobile is moving in the direction perpendicular to arrival direction of transmitted signal = %0.0f MHz',f);
|