Main Data 8
Main Data 8
OVERVIEW
1
1.1 Introduction
Both the analog and digital pulse compression technologies have been
successfully exploited for achieving best results. Range resolution with low
probability of intercept can be achieved by employing multiple digital phase codes of
greater length having good auto correlation and cross correlation properties, synthesis
of which is a nonlinear multivariable optimization problem.
2
1.2 Aim of the project
There are two objectives of this project:
1.3 Methodology
Our project mainly consists of three sections. The function of each section is as given
below.
Section One: This section deals with the introduction to basic pulse compression
technique, its advantages and the resulting high side lobes which decreases the
range resolution by masking the nearby target
Section Two: This section introduces to the various input signals and orthogonal
codes used in the code for overlaying to reduce the side lobes resulting from un-
modulated signal without any overlay
Section Three: In this section, we present output obtained from the simulation of
code for all combinations of overlaying the input signal with different orthogonal
codes presented in section two. Figures are followed with conclusion
3
1.4 Organization of the work
Chapter 3 deals with the explanation of various orthogonal codes used in the
simulation. It also presents the flowchart of the MATLAB code written.
Chapter 4 deals with the results obtained through simulations of the code
presented with all the combinations possible and output figures of each combination is
presented in this chapter along with conclusion
4
CHAPTER -2
INTRODUCTION
TO
PULSE COMPRESSION
5
2.1 Introduction
Radar (RAdio Detection And Ranging) is an electromagnetic system for the
detection and location of reflecting objects such as aircraft, ships, spacecraft, vehicles,
people, and the natural environment. It operates by radiating energy into space and
detecting the echo signal reflected from an object, or target. The reflected energy that
is returned to the radar not only indicates the presence of a target, but by comparing
the received echo signal with the signal that was transmitted, its location can be
determined along with other target-related information Radar can perform its function
at long or short distances and under conditions impervious to optical and infrared
sensors. It can operate in darkness, haze, fog, rain, and snow. Its ability to measure
distance with high accuracy and in all weather is one of its most important attributes.
The basic principle of radar is illustrated in Figure 2.1
Figure 2.1
6
2. Parameter estimation: If the returned signal of adequate strength is received,
it is further analyzed to determine target distance, velocity, shape of target,
number of targets and so forth. This analysis is referred to as parameter
estimation.
Because detection, parameter estimation, and resolution are parts of the same
measurement process, one must be careful to avoid confusing these terms. Target
detection refers to the task of recognizing a return signal in the system noise.
Similarly, measurement precision concerns the effect of noise in that it describes the
uncertainty that the interfering noise causes in the value of the parameter. In contrast,
resolution depends on the interference from other targets. Although a high signal to
noise ration ensures a good detection performance and high measurement precision, it
is merely a prerequisite for target resolution. This means that the problems of
resolution can be treated separately from those of detection
2.2 Resolution
Resolution is the ability to separately detect multiple targets or multiple
features on the same target, as opposed to reporting multiple targets as a single
detection. Targets are resolved in four dimensions although not necessarily by all
radars: Range, Azimuth, Elevation and Doppler shift.
7
It is the ability to separate multiple targets at the same angular position, but at
different ranges. Range resolution is the function of radar’s radio frequency signal
bandwidth, with wide bandwidths allowing targets closely spaced in range being
resolved. To be resolved in range, the basic criteria are that targets must be separated
by at least the range equivalent of the width of the processed echo pulse.
cτ
ΔR= ………. .
2
(2.1)
Where ΔR=range resolution (in meters),
c=velocity of propagation (in meters/sec) and
τ =processed target’s pulse width (in sec).
8
b) Types and sizes of targets.
c) Efficiency of receiver and indicator.
For small range resolution we require large bandwidth or shorter pulse width.
2. Angular and cross range resolution:
Cross-range is the linear dimension perpendicular to the axis of the antenna, specified
as azimuth (horizontal) or elevation (vertical cross range). Cross range resolution
gives the radar the ability to separate multiple targets at the same range.
Resolution in cross range is determined by the antenna’s effective beam width, with
narrow antenna beams resolving more closely spaced targets. The criterion for cross-
range resolution is that the targets at the same range separated by more than the
antenna beam width are resolved. Those separated by less than the beam width are
not.
Figure 2.3 shows the principle of cross range resolving with antenna beams, in this
case with a scanning search radar. The upper portion of the figure shows the
relationship between the antenna beams and the targets. The lower portion shows the
relative amplitudes of numerous consecutive echoes from the targets as the antenna
scans by them.
9
The beam width of the antenna is related to its length and the wave length of the
electromagnetic wave by the following relationship.
λ
θ= ----------------------------------------------------
De
(2.5)
Where λ = signals wave length,
De = the effective length of the antenna in the
direction
in which beam width is being calculated
(azimuth/elevation)
The effective size of the antenna is typically about 0.7 times its actual size.
In the figure 2.4 , the antenna is moved to position 1, transmitter pulsed, and signal
stored. It is then moved to the position 2, 3 and 4 and the process is repeated. After
observing the target’s space from the four positions, the four signals are processed in
such a way as to make the effective antenna length the distance it moved. Thus the
cross-range resolution is improved. This concept is applied in Synthetic Aperture
Radar (SAR) and Inverse Synthetic Aperture Radars (ISAR). SAR techniques are
particularly well adapted to situation where the radar moves rapidly and the target is
stationary, such as air-borne radar viewing the target on the ground. ISAR technique
is applied where the radar is stationary and the targets move rapidly fast. ISAR is
sometimes used to analyze formations of aircraft from the ground-based or ship-board
radars to determine how many aircraft are in the formation.
10
Figure2.4 Enhanced Cross Range resolution
4) Doppler Resolution:
Doppler resolution is the ability to separate targets at the same range, azimuth and
elevation but moving at different radial velocities. It is particularly useful in
identifying the targets by separating the net target motion from the spectral
components caused by rotating pieces of the targets. The criterion for Doppler
resolution is that the Doppler frequencies must differ by at least one cycle over the
time of observation. Doppler resolution thus is a function of the time over which
signal is gathered for processing. Long data gathering times (referred to as the look or
dwell time) results in smaller Doppler frequencies being resolved.
11
amount of distributed clutter with which the target echo signal must compete.
4) Interclutter visibility: With some types of "patchy" land and sea clutter, a high
resolution radar can detect moving targets in the clear areas between the clutter
patches.
5) Glint reduction: Angle and range tracking errors introduced by a complex target
with multiple scatterers are reduced when high range-resolution is employed to
isolate (resolve) the individual scatterers that make up the target.
6) Multipath resolution: Range resolution permits the separation of the desired target
echo from the echoes that arrive at the radar via scattering from longer propagation
paths, or multipath.
12
width, the bandwidth of a short pulse is large. Large bandwidth can increase system
complexity, make greater demands on the signal processing, and increase the
likelihood of interference to and from other users of the electromagnetic spectrum.
2. In some high-resolution radars the limited number of resolution cells
available with conventional displays might result in overlap of nearby echoes
when displayed, which results in a collapsing loss if the detection decision is made
by an operator.
3. Wide bandwidth can also mean less dynamic range in the receiver because
receiver noise power is proportional to bandwidth.
4. A short-pulse waveform provides less accurate radial velocity
measurement than if obtained from the doppler-frequency shift. It spite of such
limitations, the short pulse waveform is used because of the important capabilities it
provides.
5. A serious limitation to achieving long ranges with short-duration pulses is
that a high peak power is required for large pulse energy. The transmission line of
high peak power radar can be subject to voltage breakdown (arc discharge),
especially at the higher frequencies where waveguide dimensions are small.
If the peak power is limited by break down, the pulse might not have sufficient
energy.
13
peak power required of short pulse radar can’t be achieved with practical transmitter.
Since the spectral band width of a pulse is inversely proportional to its width. The
bandwidth of short pulse is large .The generation of long pulse from some short pulse
by expender having same bandwidth. These we achieve a long pulse with large
bandwidth. This process is called pulse compression.
2.3.2 Necessity
For border or field area surveillance a portable radar system with reasonable
range is required. These characteristics are archived only by employing pulse
compression tech why because in pulse compression tech we need low power for
transmission, which reduces size of equipment. Such as BFSR used by Indian Army
for the purpose.
2.3.3 Advantage
a) More efficient use of average power available at the radar transmitter and,
in some cases, avoidance of peak power problems in the high power sections of the
radar transmitter.
b) Transmission of long pulse using average power capability of system
c) The average power may be increased without increasing PRF hence it
decreases range ambiguity.
d) Reduction of vulnerability to certain types of interfering signals that don’t
have same properties as that of the coded waveform.
e) Increased system resolving capability, both in range and velocity. In the
case of range resolution, the generation of extremely fast rise time and high peak
power signals is bypassed using pulse compression techniques.
f) Good range accuracy.
14
2.3.4 Limitation:
The pulse compression have the range side lobes which might be taken mistakenly as
true signal and also can missed the weak echo signal from target.
F M T ech n iq u es
P seu d o R an d o m B inary
B ark er B in ary P hase
P h ase
2.5 FM Techniques:
15
waveforms with decreasing effective duration, the potential exists for a long-duration,
large-bandwidth, and pulse to be converted to a short-duration, "effective" pulse. In
effect we seek to "squeeze" the long pulse into a short pulse. If energy can be
conserved, we can even expect the shorter "compressed" pulse to increase in
peak amplitude compared to its amplitude as a long pulse. These effects can all
be achieved by a signal processing technique called pulse compression. The actual
signal processor consists of a matched filter that is often followed by a second filter
that minimizes certain undesired responses from the matched filter.
To visualize the process of pulse compression, imagine that a long pulse (duration T)
has a linearly varying instantaneous angular frequency ω i (t) with time, as shown in
Fig.2.5a. At the start of the pulse, the carrier cycles at a rate ω o – (Δ ω/2). In the
pulse center the frequency is ω o, the nominal carrier’s angular frequency. At the
pulse’s end frequency increases to ω o + (Δ ω /2). The total frequency deviation over
time T is Δ ω (rad/s). This pulse is applied to a pulse compression filter that
has a constant-modulus transfer function but a phase that corresponds to a
linearly decreasing envelope delay as shown in figure 2.5b .
We may visualize the low frequencies that enter the filter first as being delayed more
than those that enter later. If the slope (T seconds of delay change over an angular
frequency span of Δ ω ) is a match to the input signal's FM, all the frequencies can
be thought of as emerging at the same time and "piling up" in the output. The
response can be larger in amplitude, as shown in figure 2.5c. However, because the
input’s bandwidth is large, these frequencies can "pile up" for only a short time and
the output quickly decreases from the peak in relation to the reciprocal of bandwidth.
The duration of the main response is smaller than T by the factor 1/ΔfT , where Δf
=Δ ω /(2 π ) and ΔfT is called the time-bandwidth product or the pulse
compression ratio of s(t). Similarly peak power is larger by a factor ΔfT. Outside the
region of main response, undesired response occurs for a time duration T
on each side of the main response.
16
Figure 2.5
a) A long duration pulse with linear FM.
b) The compression filter and its Linear delay characteristics
c) The output pulse.
Sidelobes are unwanted by-products of the pulse compression process. Their form
and amplitudes depend greatly on the type of FM used and whether the
modulated pulses s(t) contains any shaping (tapering of amplitude) across the pulse.
1) In this method the output of the pulse compression filter is passed through
compensation, or weighting filter, specifically designed to reduce the sidelobes at the
expense of some loss in signal-to-noise ratio. These filters are sometimes called
mismatch filters because they don’t preserve the performance of the matched filter.
The fundamental idea in side lobe reduction is to choose a mismatch filter transfer
function such that the final output signal spectrum has a taper that leads to a
waveform with low side lobes.
17
The table 2.1 gives examples of weighting, peak side lobes that result, and other
properties of output wave form. The mismatched filter loss can generally be kept to
about 1 dB when the peak side lobe level is reduced to 30 dB below the peak
response. It is the loss that is tolerated in order to achieve lower time side lobe levels.
Table no: 2.1.
Main
Peak Loss
S.no. Weighting function beam
sidelobe(dB) (dB)
width
1 Uniform -13.2 0 1.0
πf
0.33+0.66cos2(
2* B -25.7 0.55 1.23
)
πf
cos2( ) -31.7 1.76 1.65
3* B
πf
0.16+0.84 cos2(
B
-34.0 1.0 1.4
4* )
πf
0.08+0.92 cos2(
B
-42.8 1.34 1.5
5* )
(Hamming)
*2, 3, 4, 5 are cosine power weightings whose general weighting function is given
below.
πf
Weighting function W ( ω ) =k+ (1-k) cosn ( )
B
Where n is an integer this function includes the cosine power weighting functions
.The time response function for this class of spectrum response functions is given by
Bt
sin( )
B
π
2 + 1− k But
∫0 cos u. cos( π )du
n
g (t) = k
2π
Bt π
2
Data has been calculated for non integer values of n in the range from n=1.8 to n=2.2,
for various for values of k, to evaluate the effect of errors in the hamming response
function. This data also provides approximate results on the effects of parameter
18
errors for the -40 dB Taylor weighting function.
2) In second method, non linear frequency modulation is used which offers the
advantage over linear FM of producing low time side lobes using a constant
amplitude waveform and a theoretically lossless matched filter. It doesn’t experience
the loss in the signal to noise ratio associated with matched filter used to reduce side
lobes in a linear FM pulse compression system. Constant amplitude envelope allows
efficient generation of high power. Non linear rate of change of frequency performs
the same role as amplitude weighing of the spectrum. If less time is spent over some
part of the spectrum, it is equivalent to reduced amplitude of the spectrum. In
addition, there is no significance widening of the corresponding pulse. When a
symmetrical non linear FM is used the ambiguity diagram is that of a thumb tack; i.e.,
it has a single peak rather than a ridge (a symmetrical waveform is one where the
frequency increases during the first half of the pulse and decreases in a similar manner
during the second half of the pulse or vice-versa.) hence, symmetrical non linear FM
is more sensitive to large doppler shifts and is not doppler tolerant. A non
symmetrical waveform utilizes only one half of the symmetrical waveform and has
some of the Range-Doppler coupling characteristic of the linear FM. Non linear FM
waveforms result in more system complexity than linear FM.
Changes in phase can also be used to increase the signal bandwidth of long pulse for
purposes of pulse compression. A long pulse of duration T is divided into N sub
pulses each of width τ . An increase in bandwidth is achieved by changing the phase
of each sub pulse since the rate of change of phase with time is frequency. In multiple
target environments it may be significant that the distribution of the time side lobes of
phase coded words is different from that of linear FM pulse compression. The time
side lobes of linear FM are maximum immediately adjacent to the main lobe and
decrease with distance from the main peak unless some unusual form of tapering is
used. This is not generally true for phase codes. Depending on the class of phase code
considered, the side lobes may be fairly uniform, or they may actually exhibit a
tendency to be relatively low near the main lobe. A common form of phase change is
19
binary phase coding.
In binary phase coding the phase of each sub pulse is selected to be either 0 or π
radians according to some specified criterion. If the selections of the 0, π phases are
made at random, the waveform approximates a noise modulated signal and has a
thumb tack like ambiguity function. The output of matched filter will be a compressed
pulse of width τ and will have peak N times greater than that of long pulse. The pulse
compression ratio equals the number of sub pulses N=T/τ ≈ BT, where the bandwidth
B ≈ 1/τ. The matched filter output extends for a time T on either side of peak
response. The unwanted, but unavoidable, portions of the output waveform other than
the compressed pulse are known as time side lobes.
1) Barker Codes: Barker code is a special type of code which belongs to a class of
sophisticated signal. They are widely used in radar system because of its following
properties
a) Low power and relatively high energy.
b) Sharp auto correlation function and relatively low side lobes
Barker codes are originally developed for radar application. This code is a subset of
pseudorandom code with a length up to 13. The property that makes them popular for
application in radars is known as the one shot correlation. Barker codes are the perfect
codes compared to the other codes this is because all the side lobes in Barker codes
are either zero or ± 1. Hence we can conclude here that all side lobes are very low.
Therefore a high discrimination can be obtained.
The Barker code of length N=13 is shown in Figure 2.6 (a)
Figure 2.6(a)
The (+) indicates 0 phase and (-) indicates π radian phase. Its autocorrelation
20
function, which is the output of the matched filter, is shown in Figure 2.6(b).
Figure 2.6(b)
There are six equal time-sidelobes to either side of the peak, each at a level 22.3 dB
below the peak. (The sidelobe level of the Barker codes is l/N2 that of the peak
signal.)
Figure 2.6(c)
In F igure 2.6(c) is shown schematically a tapped delay line that generates the
Barker code of length 13 when the input is from the left. The same tapped delay-line
filter can be used as the receiver matched filter if the received signal is applied from
the right. The Barker codes are listed in Table 2.2 below.
Table 2.2
Side lobe level
SNO Code length Code Elements
dB
1 2 +-,++ -6.0
2 3 ++- -9.5
3 4 ++-+,+++- -12.0
4 5 +++-+ -14.0
5 7 +++--+- -16.9
6 11 +++---+--+- -20.8
21
7 13 +++++--++-+-+ -22.3
There are none greater than length 13; hence, the greatest pulse-compression ratio
for a Barker code is 13. This is a relatively low value for pulse compression
applications.
Figure 2.7
(In a modulo-2 gate or two input Ex-or gate, the output is zero w hen both
in p uts are s ame [(0, 0) or (1, 1)] and the output is one when they are not the
same. It is equivalent to base-two addition with only the least-significant bit carried
forward.) An n-stage binary device has a total of 2n different possible states. The
shift register cannot, however, employ the state in which all stages are zero since it
would produce all zeros thereafter. Thus an n-stage shift register can generate a
binary sequence of length no greater than 2n-1 before repeating. The actual sequence
22
obtained depends on both the feedback connection and the initial loading of the shift
register. When the output sequence of an n-stage shift register is of period 2n-
1, it is called a maximal length sequence, or m-sequence. This type of waveform is
also known as a linear recursive sequence (LRS), pseudorandom sequence, pseudo
noise (PN) sequence, or binary shift-register sequence. They are linear since they
obey the superposition theorem. When applied to phase-coded pulse compression,
the zeros correspond to zero phase of the sub pulse and the ones correspond to π
radians phase. There can be more than one maximal length sequence, depending on
the feedback connection. For example, 18 different maximal length sequences, each
of length 127, can be obtained with a seven-stage shift register by using different
feedback connections. With the proper code, the highest (power) sidelobe can be
about 1/2N that of the maximum compressed-pulse power. A 24-dB sidelobe can be
available with a sequence of length 127. Not all maximal length codes, however,
have this Iowa value of peak sidelobe. For example, 45 with N = 127, the highest
sidelobe of the various maximal length sequences can vary from 18 to 24 dB below
the peak. It is generally said that the more usual maximum sidelobe of a "typical"
maximal-length shift register sequence is approximately l/N that of the peak
response. In the above example with N =127, this is 21 dB. As mentioned above, a
completely random selection of the phases usually results in a side lobe
approximately 2/N below the peak; the typical maximal-length shift-register
sequence might have a side lobe of 1/N, and the best of the maximal-length
sequences might approach 1/2N. By comparison, the Barker codes have a peak side
lobe 1/N2 below the peak. Sometimes the term code is used and at other times the
term sequence is used to describe the phases of the individual sub pulses of a phase-
coded 'waveform. Both terms are found in the literature and are often
interchangeable when discussing in pulse compression, as is the practice in this
section. The shift-register codes fit several of the tests for randomness. They are
called pseudo random since they may appear to be random, but they are actually
deterministic once the shift-register length and feedback connections are known. The
fact that a pulse compression sequence is random or pseudorandom does not mean it
will produce the lowest time- sidelobes at the output of the matched filter. For
instance, the Barker code of length 13 in Table for Barker codes as seen above is a
good sequence (for its length) in that it produces a - 22.3dB peak side lobe, but it is
not what is usually thought of as "random." It does not satisfy the balance property
23
of a random sequence (the number of ones differs from the number of zeros by at
most one); nor does it satisfy the run property (among the number of runs of ones
and zeros in each sequence, one half are of length two, one quarter of length
three, and so forth); nor does it satisfy the correlation property (when the sequence
is compared term by term with any cyclic shift of itself, the number of agreements
differs from the number of disagreements by at most one). Thus the Barker codes
are not random in the above sense, but they produce the lowest sidelobes for their
length. It should be no surprise, therefore, to find that there are better binary
sequences than the shift-register sequences.
Computer search has shown that the longest code with side- lobe level of 2 is of
length 28; 46, 47. The longest code with sidelobe level 3 is 51; 48and the longest
24
codes for levels 4 and 5 are 69 and 88 respectively. It should be quoted that the
above sidelobe levels are almost 25 dB for code lengths varying from 51 to 88.
These sidelobe levels are better than the 1/2N values of the best maximal-length
sequences.
1) Ternary codes:
Ternary code is another type of code that can be used to represent information and
data. However, ternary code uses 3 digits for representation of data. Therefore ternary
code may also be called as three alphabet code. This code consists of 1 0 and -1.
2) QuinQuenary code:
This code can also be applied to represent data. It uses five arguments to represent
information. Therefore this code can also be known as five alphabet code. Quin
quenary code usually uses alphabets ± 2, ± 1and 0.
This code is unrestricted code which actually means that the alphabet will not only be
restricted to integers but also to non integer values.
Example is 1, 1.2, 0, 7.8,-4, 1,-9.8.
4) Huffman Codes
So far every pulse compression wave form discussed is of constant amplitude across
the uncompressed pulse. The signal bandwidth is increased by phase or frequency
modulation rather than by amplitude modulation. The Huffman codes on the other
hand consist of elements that vary in amplitude as well as in phase. When the Doppler
shift is zero they produce autocorrelation function with no side lobes on the time axis
except for a single unavoidable side lobe at both ends of the compressed wave form.
The level of these two end side lobes is a design trade off. In one example, a Huffman
25
code of length 64 with no Doppler shift has a side lobe at each end that is 56 db below
the peak. As with other methods for obtaining zero or low side lobes the volume
under the ambiguity diagram must remain constant which means that higher side
lobes will appear else where in the Doppler domain. The side lobes also degrade if the
tolerance in the amplitude and phase are not maintained sufficiently high.
5) Complementary Codes
It is possible to find pairs of equal length phase coded pulse in which the side lobes of
the auto correlation function of one all the negative of the other. If the autocorrelation
function from the out put of the matched filter are added, the algebraic sum of the side
lobes will be zero and main response will be 2 N where N is the no, of elements in
each of the two codes these are called complementary codes a galaxy code after the
person who first reported their existence of described how to construct them.
Theoretically, there are no side lobes on the time axis when complimentary codes are
employed. Complementary codes can be obtained with either binary or poly phase
sequences.
These are two problems however those limit the use of complimentary codes.
1) The first is that the two codes have to be transmitted on two separated pulse,
detected separately then subtracted, any delay that occurs during this time
between two pulses can result in incomplete correlation of the side lobes
transmitting the two codes simultaneously at two different frequencies does
not solve the problem since the target response can very with frequency.
2) The second problem is that the side lobes all not zero after cancellation when
there is a Doppler frequency shift so that the ambiguity diagram will con trains
other regions with high side lobes has series practical difficulties is not as
differentiae as if might seen at first glance
The phases of the sub pulses in phase-coded pulse compression need not be
restricted to the two levels of 0 and π . When other than the binary phases of 0 or π
26
, the coded pulses are called polyphase codes. They produce lower sidelobe levels
than the binary phase codes and are tolerant to doppler frequency shifts if the
doppler frequencies are not too large. An example is the Frank polyphase code
defined by an M by M matrix as shown below.
0 0 0 . . . . 0
0 1 2 3 . . . N −1
0 2 4 6 . . . 2( N −1)
0 3 6 9 . . . 3( N −1)
. . . . . . . .
. . . . . . . .
. . . . . . . .
0 . . . . . . ( N −1) 2
The numbers in the matrix are each multiplied by a phase equal to 2 π /M radians
(or 360/M deg). The polyphase code starts at the upper left-hand corner of the
matrix, and a sequence of length M2 is obtained. The pulse compression ratio is M2 =
N, the total number of sub pulses. Frank conjectured that for large N, the highest
sidelobe of a polyphase code relative to the peak of the compressed pulse is π2N
≈ 10*(pulse compression ratio). In the above example with N = 25, the peak side
lobe is 23.9 dB. Since the rate of change of phase is a frequency, examination of the
matrix indicates that the frequencies of the Frank code change linearly with time in
a discrete fashion. The Frank codes can be thought of as approximating a stepped
linear-FM waveform. The ambiguity diagram for a polyphase code is similar to that
of a linear-FM waveform, but there can be a 3 to 4dB loss.
2.8 Conclusion
The pulse compression technology was developed in late 1960s and since then
there has been considerable advancement in this field. With advent of pulse
compression technology the radar system and their application in military and non-
military field have undergone a sea change. The trade off between signal transmitted
and range resolution was solved and that too without encountering excessively high
peak powers; which could cause electrical breakdowns. Both the analog and digital
technologies have been successfully exploited for achieving best results. Range
resolution with low probability of intercept can be achieved by employing digital
27
phase codes of greater length having good auto correlation and cross correlation
properties, synthesis of which is a nonlinear multivariable optimization problem.
Various optimization techniques which could be used for this purpose are being
developed which are discussed in the following chapters.
28
CHAPTER-3
EXPLANATION OF VARIOUS INPUT
SIGNALS
AND
OVERLAYING CODES USED IN PROJECT
There are five signals which are used as input signals in our project .they are:
29
1 .Un-modulated (constant frequency) train of pulses.
2 .Barker phase coded pulse train.
3. LFM (linearly frequency modulated) pulse train
4. Costas array embedded in pulse train
5. Modified Costas array embedded pulse train.
Before we start considering the train of un-modulated pulses, let us just notice
a single pulse first..
The complex envelope of a constant-frequency (or un-modulated) pulse appears in
Fig. 4.1 and is given by:
30
FIGURE 4.2 Partial ambiguity function of a constant-frequency pulse of length T.
FIGURE 4.2 Partial ambiguity function of a constant-frequency pulse of length T.
F-:ONST
FIGURE 3.2: Partial ambiguity function and Zero-delay cut of the AF of a pulse.
The first two quadrants of the ambiguity function are plotted in Fig. 3.2. Figure 3.2
clearly shows the triangular zero-Doppler cut of the ambiguity function. The delay
31
response reaches zero at the pulse width T. The zero-delay cut is less obvious from
Fig. 3.2
and is plotted separately in Fig. 4.4. The first Doppler null is at the inverse of the
pulse duration: namely, Ix(0, l/T)] = 0. We can therefore approximately state that the
delay resolution is T and the Doppler resolution is l/T.
32
Figure 3.4: Partial ambiguity function of a coherent train of N= 6 pulses.
The coherent pulse train provides independent control of the delay and Doppler
resolutions that was not possible in the single pulse case. The delay resolution is
controlled by the pulse duration T, while the Doppler resolution is controlled by the
total signal length N Tr. On the other hand, the Doppler and delay ambiguities are
tied; bt) the are functions of the pulse repetition interval T,. Note that their product,
which is the area of the rectangle connecting four recurrent lobes, is given by T, .1/ T,
= 1. This trade-off between Doppler (velocity) and delay (range) ambiguities is an
inherent difficulty in radar. It is the cause for the design parameter referred to as tow,
medium. or high pulse repetition frequency (PRF).
One of the early methods for pulse compression is by phase coding. We start
from a pulse of duration T . The pulse is divided into M bits of identical duration tb =
T/M, and each bit is assigned (or coded) with a different phase value. The complex
envelope of the phase-coded pulse is given by:
33
where um = exp(jφm) and the set of M phases {φ1, φ2, . . . , φM} is the phase code
associated with u(t).
The binary phase coded sequence of 0,π values that result in equal low side
lobes after passage through the matched filter is called BARKER CODE.
Probably the most famous family of phase codes is named Barker, after its
inventor (Barker, 1953). Originally, the Barker codes were designed as the sets of M
binary phases yielding a peak-to-peak side lobe ratio of M. For example, the
autocorrelation function of the M = 13-element Barker code is shown in Fig.
FIGURE 3.6: Autocorrelation function of phase-coded pulse using 13-element barker code
34
Linear frequency modulation (LFM) is the first and probably still is the most
popular pulse compression method. It was conceived during World War II,
independently on both sides of the Atlantic, as can be deduced from German, British,
and U.S. patents (Cook and Bemfeld, 1967; Cook and Seibert, 1988). The basic idea
is to sweep the frequency band B linearly during the pulse duration T
The instantaneous frequency is indeed a linear function of time. The frequency slope
k has the dimension S-2. The ambiguity function (AF) is obtained by applying
property 4 to the AF of an unmodulated pulse.
The phase and frequency of the complex envelope are shown in Fig The effective
time-bandwidth product of the signal is kT2 = BT = 10, where B is the total frequency
35
deviation. Note that the total deviation of the normalized frequency plot is BT, and the
total phase deviation is BT*π/4
FIGURE 3.9: Phase and frequency characteristic of the LFM pulse used in above figure
36
FIGURE 3.10: ZERO-DOPPLER CUT OF AF OF LFM WITH TIME BANDWIDTH PROUCT=10.
Adding line,tr frequency modulation has increased the bandwidth and thus
improved the range resolution of the signal by a factor equal to the time-bandwidth
product. However. relatively strong sidelobes remain in the autocorrelation function
(ACF), as seen, for example, in Fig The ACF is related to the power spectral density
of the signal through the Fourier transform. ACF sidelobes can be reduced by shaping
the spectrum.
37
FIGURE 3.11: Binary matrix representation of quantized linear FM (left) and Costas coding
(right).
The hopping orders described in Fig. 5.1 are only two out of M! possible
orders that meet the restriction of one dot per column and per row. Th hopping order
strongly affects the ambiguity function (AF) of the signal. The AF can be predicted
roughly by overlaying a copy of the binary matrix on itself, and then shifting one
relative to the other according to the desired delay (horizontal shifts) and Doppler
(vertical shifts). When a given delay–Doppler shift results in a coincidence of N
points, the ambiguity function is expected to yield a peak of approximately N/M at the
corresponding delay–Doppler coordinate.
In the LFM case it is easily observed that only delay and Doppler shifts of
equal number of units [τ = mtb, ν = m_f , m = 0,±1, . . . ,±(M − 1)] will cause an
overlap of dots, and the number of coinciding dots will be N = M − |m|. This hints at a
diagonal ridge in the ambiguity function, along the line ν = _f τ/tb. What is unique for
a Costas signal is that the number of coinciding dots cannot be larger than one for all
but the zero-shift case, where all dots coincide (N = M). This property implies a
narrow peak of the AF at the origin and low sidelobes elsewhere. If _f = 1/tb, the
exact AF values at the grid points will be either 1 or 0, according to the corresponding
number of coinciding dots. By grid points we refer to delay and Doppler shifts which
are integer multiples of tb and _f , respectively. An example of an overlap in a Costas
signal of length 7 is shown in Fig.
38
(A).Costas Signal Definition and Ambiguity Function:
where ai is the ith element of the coding sequence. The remaining locations (where i
+j >M) are left blank. Equation (5.1) says that the first row is formed by taking
differences between adjacent elements in the coding sequence, the second row by
taking differences between next-adjacent elements, and so on. How the sidelobe
matrix (Fig. 5.5) is derived from the difference matrix will be demonstrated by an
example. Consider the first element in the first row of the difference matrix (D1,1 =
a2 − a1 = 7 − 4 = 3). It says that at a positive normalized delay of 1 there is a
coincidence if the normalized Doppler shift is 3. This result will prompt adding 1 to
the value accumulated in the {delay = +1, Doppler = +3} location of the sidelobe
matrix. For the signal to be Costas, there should not be accumulated values larger than
1. Another way to say the same thing: If all the elements in a row of the difference
matrix are different from each other, the signal is Costas. Since the serial number of a
row in the difference matrix represents the normalized delay (a column) in the
sidelobe matrix, how do we fill the columns representing negative delays? To
complete the left-hand side of the sidelobe matrix, we simply apply the AF rule of
symmetry with respect to the origin. The number of 1’s in the sidelobe matrix is M(M
− 1). The number of 0’s in the sidelobe matrix is 3M(M − 1). To complete the
resemblance between the sidelobe matrix and the grid point values of the ambiguity
function, we add a value of M (= 7) at the origin. This is the only nonzero entry in the
zero-delay column and the zero-Doppler row. This brings the total number of
39
elements to (2M − 1)2. Finally, to normalize the peak value to 1, we divide all the
entries by M.
finally,it can be said that when pulse train is frequency modulated with large no.of
costas array elements,we can get ACF with very much reduced sidelobes.
TO M=18
40
FIGURE 3.12: Partial ambiguity function of a Costas signal with code sequence {4 7 1 6 5 2 3}.
FIGURE 3.13: Autocorrelation function of a Costas signal with code sequence {4 7 1 6 5 2 3}.
A modified Costas pulse combines Costas frequency coding with LFM within
each Costas
element (bit). Adding LFM allows increasing the size of the frequency step beyond
the nominal ¢fCostas = §1=tb. The increased frequency step results in wider
bandwidth, hence higher pulse compression. One of several discrete relationships
must exist between the LFM bandwidth B, the bit duration tb, and the increased
frequency step ¢fMod. Costas, in order to
nullify the ACF grating lobes that would show up without the LFM. The polarity of
the LFM slope need not be fixed.
41
spectral width of phase coded radar signals, while maintaining constant envelope, is
the “derivative phase (DP) modulation” . We apply this method, instead of the phase-
coded orthogonal overlay, and check the resulting ACF and Subsections(A) and (B)
briefly describe the orthogonal overlay concept and the derivative phase (DP) method.
42
DP modulation differs from conventional binary phase modulation by
replacing phase jumps with phase slopes (frequency steps). The frequency steps are so
designed that at the end of the slice duration ts the accumulated phase change is the
desired 0 or ¼. Zero phase accumulation is obtained by splitting the slice into two bits
ts =2tb; during the first bit the frequency step is ¢f =1=4tb yielding accumulated
phase of 2πδftb = π/2; during the second bit the frequency step is -δf yielding
accumulated phase of – 2; hence, zero total phase accumulation during a slice.
Phase accumulation of π(or -π) is achieved by maintaining
the frequency step of -δf during the entire slice. There are several variations to DP. In
the one to
be used here the split slice, in which the frequency modulation (FM) is[δf,-δf ]is used
in the first slice of a sequence, and whenever the current slice is identical to the
previous slice.[-δf,-δf] is used when the current slice is different from the previous
slice. Matrix below presents the FM (DP) matrix corresponding to the orthogonal
phase-coded matrix.(given above)
In the phase-coded overlay , it was straightforward to show that the overlay (namely
A) was orthogonal. In the frequency-coded overlay described above, the meaning of
orthogonality is not so simple. The test will have to be the removal of the
autocorrelation sidelobes. Because the suggested new overlay involves FM, it is of
special interest to test it with signals that are already frequency modulated.
Thus, in our project we have written a MATLAB program which allows us to select
any of the five input signals…and also provides the choice to select no overlaying,
orthogonal phase overlaying or derivative phase overlaying on the selected input
signal.
43
It plots the ambiguity function, autocorrelation function and the modulated input
signal after overlaying (i.e., amplitude. phase and frequency are plotted).
NOTE: The program written to get plots (i.e., ambiguity function, ACF, modulated
input signal after overlaying) of all the possible inputs is kept in the appendix of
above documentation.
44
CHAPTER-4
RESULTS
AND
CONCLUSIONS
45
RESULTS:
(a)with no overlay:
46
(b)with orthogonal phase overlay:
The large duty cycle (T=Tr =0:4) was selected in order to simplify the drawings. Fig.
presents the well-known ACF and magnitude spectrum of a coherent train of 13 un-
modulated pulses. The spectrum’s first local null is at fPTr = 1, with a major null at f
=1/T, namely at fPTr = 20.
Adding binary phase modulation with a slice width equal to ts = T=8 should
broaden the spectrum by a factor of 8. Because of the instant phase transition at slice
boundary, the spectrum exhibits an extended skirt, decaying at a rate of 6 dB/octave.
Thus it can be said orthogonal phase overlaying undoubtedly decreases sidelobes but
it broadens the spectrum.
47
(c)with derivative phase overlay:
Note that there are 92 “-1” in above matrix and only 36 “+1”. This implies that the
spectrum of the complex envelope of the signal containing this type of overlay will be
shifted downward in frequency. The recurrent lobes of the ACFs are also affected by
the specific frequency coding overlay In the phase-coded overlay defined in (a), it was
straightforward to show that the overlay
(namely A) was orthogonal. In the frequency-coded overlay described by (c), the
meaning of orthogonality is not so simple. The test will have to be the removal of the
autocorrelation sidelobes.
Because the suggested new overlay involves FM, it is of special interest to
test it with signals that are already frequency modulated. In coming sections, it is
applied to Costas, linear FM (LFM), and modified Costas.
NOTE: The same above discussion regarding orthogonal overlay and derivative phase
overlay will not be again done in further sections.
48
On raw constant frequency pulse train.we are first implementing phase coding
using the 13-element predefined barker code.
It can be clearly observed from the AF plot that barker phase modulated pulse
train gave sidelobes which have low strength and they are of equal strength in its
ACF.
By overlaying the orthogonal phase matrix on barker phase modulated input
the sidelobes can be reduced to a great extent and the derivative phase overlaying is
more efficient in removal of sidelobes.
Overlaying orthogonal phase matrix has given better result, but overlaying
derivative phase matrix of orthogonal phase on costas frequency modulated input
gave us the best result so far.. Fig. shows how much the wide bandwidth Costas signal
narrows the ACF mainlobe. The pulse compression of a 16 element Costas signal is
162 = 256. Indeed the mainlobe width is
approximately tb/16 = T/256.
For comparison the ambiguity function of the same Costas pulse train without
an overlay is shown in Fig. 12. It seems incredible how the small frequency dither that
the DP overlay adds to the Costas frequencies makes such a profound change in the
ambiguity function sidelobe pattern near zero-Doppler.
In this case we give an input signal in which the ON period of pulse in pulse
train is having constantly (i.e., linearly) increasing frequency. And when the
ambiguity plot of it is observed it is clear that linear frequency modulation has
49
eliminated the sidelobes effectively. But the performance of this is less than that of
costas array.
Adding linear frequency modulation has increased the bandwidth and thus
improved the range resolution of the signal by a factor equal to the time-bandwidth
product. However, relatively strong sidelobes remain in the autocorrelation function
(ACF), as seen, for example, in Fig. The ACF is related to the power spectral density
of the signal through the Fourier transform. ACF sidelobes can be reduced by shaping
the spectrum.
Finally, the ambiguity function of the LFM train with derivative phase overlay
shows that the slice with sidelobes 1tau1 < 3tb is actually a strip that extends to higher
Doppler frequencies.
A modified Costas pulse combines Costas frequency coding with LFM within
each Costas element (bit). Adding LFM allows increasing the size of the frequency
step beyond the nominal
The increased frequency step results in wider bandwidth, hence higher pulse
compression. One of several discrete relationships must exist between the LFM
bandwidth B, the bit duration tb, and the increased frequency step ¢fMod. Costas, in
50
order to nullify the ACF grating lobes that would show up without the LFM. The
polarity of the LFM slope need
not be fixed. In our example we use the relationships
The LFM slope polarity alternates between bits whose frequency slots are
adjacent, in order to reduce their relatively large spectral overlap
Since the variation of frequency in modified costas is random and it’s a
combination of discrete and linear change , therefore the output plot i.e., ambiguity
plot has less sidelobes (but comparatively more sidelobes when compared to costas
modulated pulse train)
Note The output will vary when different costas arrays of same order are used in
combination with linearly increasing frequency. And therefore there can be a few
combinations of costas input which can give even more better results
51
4.2: OUTPUT WAVEFORMS
1. FOR UNMODULATED PULSE TRAIN
52
53
FIG 4.1 : OUTPUT WAVEFORMS FOR UNMODULATED PULSE TRAIN WITHOUT ANY
OVERLAY
54
FIG 4.2:OUTPUT WAVEFORMS FOR UNMODULATED PULSE TRAIN ORTHOGONAL
PHASE OVERLAY
55
FIG 4.3 : OUTPUT WAVEFORMS FOR UNMODULATED PULSE TRAIN WITH
DERIVATIVE PHASE OVERLAY
56
FIG 4.4 : OUTPUT WAVEFORMS FOR 13 BIT BARKER CODE WITHOUT OVERLAY
57
FIG 4.5 : OUTPUT WAVEFORMS FOR 13 ELEMENT BARKER CODE WITH ORTHOGONAL
PHASE OVERLAY
58
FIG 4.6 : OUTPUT WAVEFORMS FOR 13 ELEMENT BARKER CODE WITH DERIVATIVE
PHASE OVERLAY
59
3.:OUTPUT WAVEFORMS FOR 8 ELEMENT COSTAS ARRAY:
FIG 4.7 : OUTPUT WAVEFORMS FOR 8 ELEMENT COSTAS ARRAY WITHOUT ANY
OVERLAY
60
FIG 4. 8 : OUTPUT WAVEFORMS FOR 8 ELEMENT COSTAS ARRAY WITH ORTHOGONAL
PHASE OVERLAY
61
FIG 4. 9 : OUTPUT WAVEFORMS FOR 16 ELEMENT COSTAS ARRAY WITH DERIVATIVE
PHASE OVERLAY
62
4. OUTPUT WAVEFORMS FOR LFM PULSES:
FIG 4.10 :OUTPUT WAVEFORMS FOR LFM PULSES WITHOUT ANY OVERLAY
63
FIG 4.11 : OUTPUT WAVEFORMS FOR LFM PULSES WITH ORTHOGONAL PHASE
OVERLAY
64
FIG 4.12 : OUTPUT WAVEFORMS FOR LFM PULSES WITH DERIVATIVE PHASE
OVERLAY
65
5. OUTPUT WAVEFORMS FOR MODIFIED COSTAS ARRAY OF PULSES:
66
FIG 4.14 : OUTPUT WAVEFORMS FOR MODIFIED COSTAS ARRAY OF PULSES WITH
ORTHOGONAL PHASE OVERLAY
67
FIG 4. 15 : OUTPUT WAVEFORMS FOR MODIFIED COSTAS ARRAY OF PULSES WITH
DERIVATIVE PHASE OVERLAY
68
CONCLUSION:
Thus it can now be concluded that we have observed the output plots of all
(i.e., 15 ) possible input combinations and The basic fact which can be said is
practically the same ACF sidelobes removal can be achieved when implementing
orthogonal overlay using DP, which is frequency coding, rather than the original
binary phase-coded overlay.
The added frequency coding is especially attractive for signals in which the
pulse compression was obtained originally through FM. The DP overlay was
demonstrated on four types of frequency modulated pulse train signals: un-modulated
pulses, Costas pulses, LFM pulses, and modified Costas pulses.
69
APPENDIX
70
MATLABCODE:
clc;
clear all;
z1=[zeros(1,28)];%array of 28 zeros used for f_basic
z=zeros(1,20);%array of 20 zeros used as off period
p=[ones(1,8),z];%basic pulse
pt=[p,p,p,p,p,p,p,p,p,p,p,p,p];%train of 13 pulses
b=[p,p,p,p,p,-p,-p,p,p,-p,p,-p,p];%barker code of 13 elements
fcb=[1 2 5 7 6 4 8 3,z];%costas array of order 8 & zeros
fc=[fcb,fcb,fcb,fcb,fcb,fcb,fcb,fcb,fcb,fcb,fcb,fcb,fcb];%costas for 13 pulses
flfmb=[1 2 3 4 5 6 7 8,z];%linearly increasing frequency for lfm
%flfmb=[.062 .0651 .0682 .0713 .0744 .0775 .0806 .0837,z];
flfm=[flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb,flfmb
];%lfm for 13 pulses
%fmcb=[1.062 2.0651 5.0682 7.0713 6.0744 4.0775 8.0806 3.0837,z];
fmcb=[2 4 8 11 11 10 15 11 ,z];%modified lfm for pulse
fmc=[fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,fmcb,];
%modified lfm for pulse train
op=[ 1 1 1 1 1 1 1 1,z
1 1 -1 -1 -1 -1 1 1,z
1 -1 -1 1 1 -1 -1 1,z
1 1 1 1 -1 -1 -1 -1,z
1 -1 1 -1 1 -1 1 -1,z %orthogonal phase overlay matrix for 13 pulses
1 1 -1 -1 1 1 -1 -1,z
1 -1 1 -1 -1 1 -1 1,z
1 -1 -1 1 -1 1 1 -1,z
1 1 1 1 1 1 1 1,z
1 1 -1 -1 -1 -1 1 1,z
1 -1 -1 1 1 -1 -1 1,z
1 1 1 1 -1 -1 -1 -1,z
1 -1 1 -1 1 -1 1 -1,z ];
opr=[op(1,:),op(2,:),op(3,:),op(4,:),op(5,:),op(6,:),op(7,:),op(8,:),op(9,:),op(10,:),op(11
,:),op(12,:),op(13,:)];
oppt=opr.*pt;%orthogonal phase overlayed on pulse train
dp= 0.25.*[1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1,z
1 -1 1 -1 -1 -1 1 -1 1 -1 1 -1 -1 -1 1 -1,z
1 -1 -1 -1 1 -1 -1 -1 1 -1 -1 -1 1 -1 -1 -1,z
1 -1 1 -1 1 -1 1 -1 -1 -1 1 -1 1 -1 1 -1,z
1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1,z
1 -1 1 -1 -1 -1 1 -1 -1 -1 1 -1 -1 -1 1 -1,z
1 -1 -1 -1 -1 -1 -1 -1 1 -1 -1 -1 -1 -1 -1 -1,z%DERIVATIVE PHASE OVERLAY
1 -1 -1 -1 1 -1 -1 -1 -1 -1 -1 -1 1 -1 -1 -1,z MATRIX FOR 13 PULSES
1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1,z
1 -1 1 -1 -1 -1 1 -1 1 -1 1 -1 -1 -1 1 -1,z
1 -1 -1 -1 1 -1 -1 -1 1 -1 -1 -1 1 -1 -1 -1,z
1 -1 1 -1 1 -1 1 -1 -1 -1 1 -1 1 -1 1 -1,z
1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1,z ];
71
dpr=[dp(1,:),dp(2,:),dp(3,:),dp(4,:),dp(5,:),dp(6,:),dp(7,:),dp(8,:),dp(9,:),dp(10,:),dp(11
,:),dp(12,:),dp(13,:)];
p1=[ones(1,16),z];
pt1=[p1,p1,p1,p1,p1,p1,p1,p1,p1,p1,p1,p1,p1];
b1=[p1,p1,p1,p1,p1,-p1,-p1,p1,p1,-p1,p1,-p1,p1];
fcb1=[1 3 9 10 13 5 15 11 16 14 8 7 4 12 2 6,z];
fc1=[fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1,fcb1];
% flfmb1=[.062 .062 .0651 .0651 .0682 .0682 .0713 .0713 .0744 .0744 .0775 .0775 .
0806 .0806 .0837 .0837,z];
flfmb1=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16,z];
flfm1=[flfmb1,flfmb1,flfmb1,flfmb1,flfmb1,flfmb1,flfmb1,flfmb1,flfmb1,flfmb1,flf
mb1,flfmb1,flfmb1];
% fmcb1=[1.062 1.062 2.0651 2.0651 5.0682 5.0682 7.0713 7.0713 6.0744 6.0744
4.0775 4.0775 8.0806 8.0806 3.0837 3.0837,z];
fmcb1=[2 5 12 14 18 11 22 19 25 24 19 19 17 26 17 22 ,z];
fmc1=[fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,fmcb1,f
mcb1,fmcb1];
fcode=1;
gcode=input('want to overlay....yes => press 1 & no => press 0: ')%FOR
ENTERING CHOICE TO OVERLAY OR NOT
if gcode==0
%for entering choice for input signal
g=input('enter the choice for input signal..i.e.,press:\n 1. for unmodulated pulse
train..\n 2. for 13 element barker coded pulse..\n 3. for order 8 costas array..\n 4. for
lfm pulses..\n 5. for modified costas array of pulses.. ')
if g==1
u_basic=pt;
f_basic=[z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1];
elseif g==2
u_basic=b;
f_basic=[z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1];
elseif g==3
u_basic=pt;
f_basic=fc;
elseif g==4
u_basic=pt;
f_basic=flfm;
else u_basic=pt;
f_basic=fmc;
end
else
g1=input('enter the choice for input signal..i.e.,press:\n 1. for unmodulated pulse
train..\n 2. for 13 element barker coded pulse..\n 3. for order 8 costas array..\n 4. for
lfm pulses..\n 5. for modified costas array of pulses.. ')
%to have a choice for overlaying signal..
g2=input('for orthogonal phase overlay press 1: \n for derivative phase overlay press
2:');
if g2==1
if g1==1
u_basic=oppt;
72
f_basic=[z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1];
elseif g1==2
u_basic=b.*opr;
f_basic=[z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1,z1];
elseif g1==3
u_basic=oppt;
f_basic=fc;
elseif g1==4
u_basic=oppt;
f_basic=flfm;
else u_basic=oppt;
f_basic=fmc;
end
else
if g1==1
u_basic=pt1;
f_basic=dpr;
elseif g1==2
u_basic=b1;
f_basic=dpr;
elseif g1==3
u_basic=pt1;
f_basic=fc1+dpr;
elseif g1==4
u_basic=pt1;
f_basic=flfm1+dpr;
else u_basic=pt1;
f_basic=fmc1+dpr;
end
end
end
m_basic=length(u_basic);
F=5%input(' Maximal Doppler shift for ambiguity plot [in units of 1/Mtb] (e.g., 1)= ?
');
K=50%input(' Number of Doppler grid points for calculation (e.g., 100) = ? ');
df=F/K/m_basic;
T=.5%input(' Maximal Delay for ambiguity plot [in units of Mtb] (e.g., 1)= ? ');
N=50%input(' Number of delay grid points on each side (e.g. 100) = ? ');
sr=50%input(' Over sampling ratio (>=1) (e.g. 10)= ? ');
r=ceil(sr*(N+1)/T/m_basic);
if r==1
dt=1;
m=m_basic;
uamp=abs(u_basic);
phas=uamp*0;
73
phas=angle(u_basic);
if fcode==1
phas=phas+2*pi*cumsum(f_basic);
end
uexp=exp(j*phas);
u=uamp.*uexp;
t=[0:r*m_basic-1]/r;
tscale1=[0 0:r*m_basic-1 r*m_basic-1]/r;
dphas=[NaN diff(phas)]*r/2/pi;
% this block is for ACF
acfun=20*log10(abs(xcorr(u)));
acfun=acfun-max(acfun);
acfun=max(acfun,-90);
acfun=acfun(1:(length(acfun)+1)/2);
acfun=fliplr(acfun);
scalet=[0:length(acfun)-1]/(length(acfun)-1)*t(length(t));
figure(1), clf, hold off
%set(AX,'XMinorGrid','on')
%subplot(111);
plot(scalet,acfun);
xlabel('{\it\tau}/\itt_b');
ylabel('Autocorelation [dB]');
%title(titlest);
axis([0 max(scalet)/5 -90 0])
grid on% denominator of scalet determine the x axes scale
74
plot(tscale1,[0 abs(uamp) 0],'linewidth',1.5)
ylabel(' Amplitude ')
axis([-inf inf 0 1.2*max(abs(uamp))])
subplot(3,1,2)
plot(t, phas,'linewidth',1.5)
axis([-inf inf -inf inf])
ylabel(' Phase [rad] ')
% calculate a delay vector with N+1 points that spans from zero delay to ceil(T*t(m))
% notice that the delay vector does not have to be equally spaced but must have all
% entries as integer multiples of dt
dtau=ceil(T*m)*dt/N;
tau=round([0:1:N]*dtau/dt)*dt;
% calculate K+1 equally spaced grid points of Doppler axis with df spacing
f=[0:1:K]*df;
75
% each row is shifted tau/dt places from the first row
% the minimal shift (first row) is zero
% the maximal shift (last row) is ceil(T*m) places
% the total number of rows is N+1
% number of columns is m+ceil(T*m)
% calculate matrix
mat2 = sparse(u_padded(index));
% calculate exponent matrix for full calculation of ambiguity function. the exponent
76
% matrix is 2*(K+1) rows by m columns where each row represents a possible
Doppler and
% each column stands for a different place in u.
e=exp(-j*2*pi*f'*t);
% calculate ambiguity function for positive delays by calculating the integral for each
% possible delay and Doppler over all entries in u.
% a_pos has 2*(K+1) rows (Doppler) and N+1 columns (Delay)
a_pos=abs(e*uu_pos');
y=max(max(a_pos))
%h=max(a_pos);
% normalize ambiguity function to have a maximal value of 1
a_pos=a_pos/max(max(a_pos));
% use the symmetry properties of the ambiguity function to transform the negative
Doppler
% positive delay part to negative delay, positive Doppler
a=[flipud(conj(a_pos(1:K+1,:))) fliplr(a_pos(K+2:2*K+2,:))];
%cm=zeros(64,3);
%cm(:,1)=ones(64,1);
%cm=rand(64,3)
figure(3), clf, hold off
mesh(delay, [0 freq], [zeros(1,amt);a])
hold on
surface(delay, [0 0], [zeros(1,amt);a(1,:)])
colormap(cm)
view(-40,50)
axis([-inf inf -inf inf 0 1])
xlabel(' {\it\tau} /{\itt_b}','Fontsize',12);
77
ylabel(' {\it\nu} *{\itNt_b}','Fontsize',12);
zlabel(' |{\it\chi}({\it\tau},{\it\nu})| ','Fontsize',12);
hold off
4.16 Envelope of al
78