diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1997/CH4/EX4.2/example2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1997/CH4/EX4.2/example2.sce')
-rwxr-xr-x | 1997/CH4/EX4.2/example2.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1997/CH4/EX4.2/example2.sce b/1997/CH4/EX4.2/example2.sce new file mode 100755 index 000000000..c69731e54 --- /dev/null +++ b/1997/CH4/EX4.2/example2.sce @@ -0,0 +1,21 @@ +//Chapter-4 example 4.2
+//=============================================================================
+clc;
+clear;
+//input data
+F = 1*10^9; //operating frequency of monopulse radar in Hz
+Vo = 3*10^8; //velocity of EM wave in m/s
+theta_d = 10 //angle blw los and perpendicular bisector of line joining two antennas
+PD_d = 20; //phase difference in degrees
+
+// calculations
+lamda = Vo/F //wavelength in m
+//PD = (2*%pi/lamda)*(d*sin(theta));
+theta_r = theta_d*(%pi/180) //degree to radian conversion
+PD_r = PD_d*(%pi/180) //degree to radian conversion
+d = (PD_r*lamda)/(2*%pi*sin(theta_r));
+
+//output
+mprintf('Spacing between the antennas is %3.2f cms',d*100);
+
+//===============end of the program============================================
|