summaryrefslogtreecommitdiff
path: root/2219/CH10/EX10.2/Ex10_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2219/CH10/EX10.2/Ex10_2.sce
downloadScilab-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/CH10/EX10.2/Ex10_2.sce')
-rwxr-xr-x2219/CH10/EX10.2/Ex10_2.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2219/CH10/EX10.2/Ex10_2.sce b/2219/CH10/EX10.2/Ex10_2.sce
new file mode 100755
index 000000000..20926dec8
--- /dev/null
+++ b/2219/CH10/EX10.2/Ex10_2.sce
@@ -0,0 +1,24 @@
+// Chapter 10 example 1
+//------------------------------------------------------------------------------
+clc;
+clear;
+f = 10*10^9; // center freq. in Hz
+f_us = 60*10^3; // upsweep freq. in Hz
+f_ds = 80*10^3; // down sweep freq. in Hz
+fm = 100; // modulation freq. in Hz
+B = 2*10^6; // sweep bandwidth in Hz
+c = 3*10^8; // vel. of EM waves in m/s
+T = 5*10^-3;
+
+// Calculations
+fd = (f_ds - f_us)/2;
+df = (f_ds + f_us)/2;
+R = (c*T*df)/(2*B); // range in m
+// fd = (2*Vr*f)/c
+Vr = (c*fd)/(2*f); // target radial velocity
+Vr_kmph = Vr*(18/5); // target radial velocity in kmph
+Vr_nmph = Vr_kmph/1.85; // target radial velocity in Nautical miles per hour
+
+// Output
+mprintf('Target Range = %3.2f Km\n Radial velocity = %3.1f Nmi/hr',R/1000,Vr_nmph);
+//-----------------------------------------------------------------------------