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 /2219/CH7/EX7.17 | |
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 '2219/CH7/EX7.17')
-rwxr-xr-x | 2219/CH7/EX7.17/Ex7_17.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2219/CH7/EX7.17/Ex7_17.sce b/2219/CH7/EX7.17/Ex7_17.sce new file mode 100755 index 000000000..058eb4d2d --- /dev/null +++ b/2219/CH7/EX7.17/Ex7_17.sce @@ -0,0 +1,24 @@ +// chapter 7 example 17
+//-----------------------------------------------------------------------------
+clc;
+clear;
+// given data
+c = 3*10^8; // velocity of EM waves in m/s
+f = 2.5*10^9; // operating frequency in Ghz
+S = 10*10^-2; // inter element spacing
+theta = 10; // steering angle
+
+// Calculations
+lamda = c/f // Wavelength in m
+phi = (360*(S/lamda))*sin(theta*(%pi/180))
+phi1 = 0*phi // phase angle for element 1
+phi2 = 1*phi // phase angle for element 2
+phi3 = 2*phi // phase angle for element 3
+phi4 = 3*phi // phase angle for element 4
+phi5 = 4*phi // phase angle for element 5
+
+// Output
+mprintf('Phase angles for elements 1,2,3,4,5 are %d°, %d°, %d°, %d°, %d°',phi1,phi2,phi3,phi4,phi5);
+//------------------------------------------------------------------------------
+
+
|