summaryrefslogtreecommitdiff
path: root/2219/CH10/EX10.13/Ex10_13.sce
blob: d29d0960c5861d1a09b69f4df3e2002d87cea3d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Chapter 10 example 13
//------------------------------------------------------------------------------
clc;
clear;
//Given data
PRF_1   = 750;      // pulse rep. freq in Hz
PRF_2   = 1000;     // pulse rep. freq in Hz
PRF_3   = 1250;     // pulse rep. freq in Hz
Ra_1    = 100;      // Apparent range for PRF_1
Ra_2    = 50;       // Apparent range for PRF_2
Ra_3    = 20;       // Apparent range for PRF_3
c       = 3*10^5;   // Vel of EM waves in Km/s

// Calculations
for Nr = 1:6         // Nr = Radar Zones
    R1(Nr)       = Ra_1 + ((c/2)*((Nr - 1)/PRF_1))    // true range in km
     R2(Nr)       = Ra_2 + ((c/2)*((Nr - 1)/PRF_2))    // true range in km
      R3(Nr)       = Ra_3 + ((c/2)*((Nr - 1)/PRF_3))    // true range in km
end

// Output
mprintf('Possible True Range measurements for 750 PPS\n');
mprintf(' = %dkm \n',R1);
mprintf('Possible True Range measurements for 1000 PPS\n')
mprintf(' = %dkm \n',R2);
mprintf('Possible True Range measurements for 1250 PPS\n')
mprintf(' = %dkm \n',R3);
mprintf('The shortest possible range that has been measured at all PRFs is %d Km True Range = %d km',R1(3),R1(3))