diff options
Diffstat (limited to '3542/CH5/EX5.1/Ex5_1.sce')
-rw-r--r-- | 3542/CH5/EX5.1/Ex5_1.sce | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/3542/CH5/EX5.1/Ex5_1.sce b/3542/CH5/EX5.1/Ex5_1.sce new file mode 100644 index 000000000..0533e3f3e --- /dev/null +++ b/3542/CH5/EX5.1/Ex5_1.sce @@ -0,0 +1,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);
|