summaryrefslogtreecommitdiff
path: root/2219/CH10/EX10.1/Ex10_1.sce
blob: 979d5353d5d649c68f0e2a137ad503dc2570a107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Chapter 10 example 1
//------------------------------------------------------------------------------
clc;
clear;
c       = 3*10^8;           // velocity of EM waves in m/s
f       = 10*10^9;          // carrier freq in Hz
fm      = 100;              // freq of modlating signal
dphi    = 10;               // separation b/w tx FM signal and demod echo signal in degrees

// Calculations
Tp      = dphi/(360*fm);    // round trip propagation time
R       = (c*Tp)/2;         // target range

// output
mprintf('Target Range = %3.2f Km',R/1000);
//------------------------------------------------------------------------------