main content

waveform analysis using the ambiguity function -凯发k8网页登录

this example shows how to use the ambiguity function to analyze waveforms. it compares range and doppler capabilities of several common pulsed waveforms such as the rectangular waveform, the linear frequency modulated (fm) waveform, and the stepped fm waveform. it also shows ambiguity functions for several nonlinear fm waveforms and a phase coded waveform.

in radar and sonar systems, the choice of a waveform plays an important role in enabling the system to separate two closely located targets, in either range or speed. therefore, it is often necessary to examine a waveform and understand its resolution and ambiguity in both range and speed domains. the delay is used to measure range while the doppler shift is used to measure speed. thus, the range and the speed are used interchangeably with the delay and the doppler.

introduction

to improve the signal to noise ratio (snr), modern radar and sonar systems often employ the matched filter in the receiver chain. the ambiguity function of a waveform represents exactly the output of the matched filter when the specified waveform is used as the filter input. this exact representation makes the ambiguity function a popular tool for designing and analyzing waveforms. this approach provides an insight into the resolution capability in both delay and doppler domains for a given waveform. based on this analysis, one can then determine whether a waveform is suitable for a particular application.

the following sections use the ambiguity function to explore the range-doppler relationship for several popular waveforms. to establish a comparison baseline, assume that the design specification of a radar system requires a maximum unambiguous range of 15 km and a range resolution of 150 m.

rmax = 15e3;
rres = 150;

based on these design specifications, the pulse repetition frequency (prf) and the bandwidth of the waveform can be computed as follows.

prf = 1/range2time(rmax)
prf = 9.9931e 03
bw = rangeres2bw(rres)
bw = 9.9931e 05

rectangular pulse waveform

the simplest waveform is a rectangular waveform, sometimes also referred to as single frequency waveform. for the rectangular waveform, the pulse width is the reciprocal of the bandwidth.

a rectangular waveform can be created as follows.

tau = 1/bw;     % pulse width
fs = 4*bw;      % set the sampling frequency to a high value to generate smoother plots
rectwav = phased.rectangularwaveform('samplerate',fs,'prf',prf,'pulsewidth',tau)
rectwav = 
  phased.rectangularwaveform with properties:
                samplerate: 3.9972e 06
     durationspecification: 'pulse width'
                pulsewidth: 1.0007e-06
                       prf: 9.9931e 03
     prfselectioninputport: false
     frequencyoffsetsource: 'property'
           frequencyoffset: 0
              outputformat: 'pulses'
                 numpulses: 1
             prfoutputport: false
    coefficientsoutputport: false

because the analysis of a waveform is always performed on full pulses, keep the outputformat property as 'pulses'. one can also check the bandwidth of the waveform using the bandwidth method.

rect_bw = bandwidth(rectwav)
rect_bw = 9.9931e 05

the resulting bandwidth matches the requirement. now, generate one pulse of the waveform, and then examine it using the ambiguity function.

rectsamples = rectwav();
ambgfun(rectsamples,rectwav.samplerate,rectwav.prf)
xlim([-tau tau]*2e 6)

figure contains an axes object. the axes object with title ambiguity function, xlabel delay tau blank ( u s ), ylabel doppler f indexof d baseline blank ( m h z ) contains an object of type contour.

the nonzero response occupies only a small fraction of all delays focusing in a narrow strip around zero delay. this occurs because the waveform has a duty cycle of 0.01.

rect_dc = dutycycle(rectwav.pulsewidth,rectwav.prf)
rect_dc = 0.0100

when investigating a waveform's resolution capability, the zero-delay cut and the zero-doppler cut of the waveform ambiguity function are often of interest.

the zero-doppler cut of the ambiguity function returns the auto-correlation function (acf) of the rectangular waveform. the cut can be plotted using the following command.

ambgfun(rectsamples,rectwav.samplerate,rectwav.prf,'cut','doppler')
xlim([-tau tau]*2e 6)

figure contains an axes object. the axes object with title ambiguity function, 0 mhz doppler cut, xlabel delay tau blank ( u s ), ylabel ambiguity function contains an object of type line.

the zero-doppler cut of the ambiguity function depicts the matched filter response of a target when the target is stationary. from the plot, one can see that the first null response appears at 1 microsecond, which means that this waveform is guaranteed to be able to resolve two targets that are at least 1 microsecond, or 150 m apart. hence, the response matches the requirement in the design specification.

the zero-delay cut can be plotted using a similar syntax.

ambgfun(rectsamples,rectwav.samplerate,rectwav.prf,'cut','delay')
xlim([-bw bw]*2e-6)

figure contains an axes object. the axes object with title ambiguity function, 0 us delay cut, xlabel doppler f indexof d baseline blank ( m h z ), ylabel ambiguity function contains an object of type line.

notice that the returned zero-delay response is fairly broad. the first null appears at a doppler shift of 1 mhz. thus, if the two targets are at the same range, they need to have a difference of 1 mhz in the doppler domain to be separated. assuming the radar is working at 1 ghz, according to the computation below, such a separation corresponds to a speed difference of almost 150 km/s. because this number is so large, essentially one cannot separate two targets in the doppler domain using this system.

fc = 1e9;
rect_deltav = dop2speed(1e6,freq2wavelen(fc))/2
rect_deltav = 1.4990e 05

another issue with the rectangular waveform is that the range resolution is determined by the pulse width. thus, to achieve good range resolution, the system needs to adopt a very small pulse width. at the same time, the system also needs to be able to send out enough energy to the space so that the returned echo can be reliably detected. hence, a narrow pulse width requires very high peak power at the transmitter. in practice, producing such power can be very costly.

linear fm pulse waveform

one can see from the previous section that a single rectangular pulse has poor doppler resolution. in fact, the doppler resolution of a single rectangular pulse is given by the reciprocal of the pulse width. at the same time, the range resolution of a rectangular waveform is proportional to the pulse width. apparently, there exists a conflict between range and doppler resolutions of a rectangular waveform.

the root issue here is that both the delay and the doppler resolution depend on the pulse width in opposite ways. therefore, one way to solve this issue is to come up with a waveform that decouples this dependency. one can then improve the resolution in both domains simultaneously.

linear fm waveform is just such a waveform. the range resolution of a linear fm waveform no longer depends on the pulse width. instead, the range resolution is determined by the sweep bandwidth.

a system that transmits a linear fm waveform can afford a longer pulse width, which alleviates the power requirement. the longer pulse width also improves the doppler resolution. this improvement occurs even though the doppler resolution of a linear fm waveform is still given by the reciprocal of the pulse width.

now, explore the linear fm waveform in detail. the linear fm waveform that provides the desired range resolution can be constructed as follows.

tau_fm = 50/bw;
lfmwav = phased.linearfmwaveform('samplerate',fs,'sweepbandwidth',bw,'prf',prf,'pulsewidth',tau_fm)
lfmwav = 
  phased.linearfmwaveform with properties:
                samplerate: 3.9972e 06
     durationspecification: 'pulse width'
                pulsewidth: 5.0035e-05
                       prf: 9.9931e 03
     prfselectioninputport: false
            sweepbandwidth: 9.9931e 05
            sweepdirection: 'up'
             sweepinterval: 'positive'
                  envelope: 'rectangular'
     frequencyoffsetsource: 'property'
           frequencyoffset: 0
              outputformat: 'pulses'
                 numpulses: 1
             prfoutputport: false
    coefficientsoutputport: false

the pulse width of this linear fm waveform is 50 times longer than that of the rectangular waveform used in the earlier sections of this example. this means that the duty cycle is 50 times larger.

lfm_dc = dutycycle(lfmwav.pulsewidth,lfmwav.prf)
lfm_dc = 0.5000

notice that the bandwidth of the linear fm waveform is the same as the rectangular waveform.

lfm_bw = bandwidth(lfmwav)
lfm_bw = 9.9931e 05

the zero-doppler cut of the ambiguity function for the linear fm waveform appears in the next plot. to better visualize the sidelobe behavior the ambiguity function is plotted in db scale.

lfmsamples = lfmwav();
[lfmaf_delay,delay] = ambgfun(lfmsamples,lfmwav.samplerate,lfmwav.prf,'cut','doppler');
figure
hold on
plot(delay*1e6,mag2db(lfmaf_delay))
yline(-13.2,'label','sidelobe level (-13.2 db)')
grid on
xlabel('delay \tau (us)')
ylabel('ambiguity function (db)')
xlim([-tau_fm tau_fm]*3e5)
ylim([-50 0])
title('ambiguity function, 0 mhz doppler cut')

figure contains an axes object. the axes object with title ambiguity function, 0 mhz doppler cut, xlabel delay tau blank ( u s ), ylabel ambiguity function (db) contains 2 objects of type line, constantline.

from the preceding figure, one can see that even though the response now has sidelobes, the first null still appears at 1 microsecond, so the range resolution is preserved. the sidelobe level for a waveform is often described using the peak-to-sidelobe ratio (psr). typically, the sidelobes near the main lobe are the highest. the sidelobes created by a stronger target can mask returns from a weaker target and make its detection impossible even if the two targets are resolvable in range. for a linear fm pulse with a rectangular amplitude the psr is -13.2 db.

one can also plot the zero-delay cut of the linear fm waveform. observe that the first null in doppler domain is now at around 20 khz, which is 1/50 of the original rectangular waveform.

[lfmaf_doppler,doppler] = ambgfun(lfmsamples,lfmwav.samplerate,lfmwav.prf,'cut','delay');
figure
plot(doppler*1e-3,lfmaf_doppler)
grid on
xlabel('doppler f_d (khz)')
ylabel({'ambiguity','function'})
xlim([-200 200])
title('ambiguity function, 0 us delay cut')

figure contains an axes object. the axes object with title ambiguity function, 0 us delay cut, xlabel doppler f_d ( k h z ), ylabel ambiguity function contains an object of type line.

following the same procedure as for the rectangular waveform in the earlier sections of this example, one can calculate that the 20 khz doppler separation translates to a speed difference of 3 km/s. this resolution is 50 times better than the rectangular waveform. unfortunately, such resolution is still inadequate.

lfm_deltav = dop2speed(20e3,wavelen2freq(fc))/2
lfm_deltav = 2.9979e 03

it can be instructive to see a 3-d plot of the ambiguity function or to plot the top view of the ambiguity function as an image. to generate a plot in other than the contour format, you can just get the returned ambiguity function and then plot it using your favorite format. for example, the following snippet generates the surface plot and a top view image of a linear fm waveform ambiguity function.

[lfmaf,delay,doppler] = ambgfun(lfmsamples,lfmwav.samplerate,lfmwav.prf);
figure
tiledlayout(2, 1)
nexttile
surf(delay*1e6,doppler/1e3,lfmaf,'linestyle','none')
xlim([-tau_fm tau_fm]*1e6)
ylim([-bw bw]*1e-3)
colorbar
view([-40,35])
xlabel('delay \tau (us)')
ylabel('doppler f_d (khz)')
nexttile
imagesc(delay*1e6,doppler/1e3,mag2db(lfmaf))
xlim([-tau_fm tau_fm]*1e6)
ylim([-bw bw]*1e-3)
clim([-30 0])
cbar = colorbar;
cbar.label.string = '(db)';
axis xy
xlabel('delay \tau (us)')
ylabel('doppler f_d (khz)')
sgtitle('linear fm pulse waveform ambiguity function')

figure contains 2 axes objects. axes object 1 with xlabel delay \tau (us), ylabel doppler f_d (khz) contains an object of type surface. axes object 2 with xlabel delay \tau (us), ylabel doppler f_d (khz) contains an object of type image.

notice that compared to the ambiguity function of the rectangular waveform, the ambiguity function of the linear fm waveform is tilted. this is due to delay-doppler coupling. the tilt provides the improved resolution in the zero-delay cut.

since typical doppler shifts are much smaller compared to the waveform's bandwidth, the peak values of non-zero-doppler cuts and hence the peak values of the matched filter outputs decrease only slightly when moving targets are observed. this behavior of the ambiguity function is what makes the linear fm waveform doppler tolerant.

the ambiguity functions of both the rectangular waveform and the linear fm waveform have the shape of a long, narrow edge. this kind of ambiguity function is often termed as a knife edge ambiguity function.

before proceeding to improve further the doppler resolution, it is worth looking at an important figure of merit used in waveform analysis. the product of the pulse width and the bandwidth of a waveform is called the waveform's time-bandwidth product. for a rectangular waveform, the time-bandwidth product is always 1. for a linear fm waveform, because of the decoupling of the bandwidth and the pulse width, the time-bandwidth can be larger than 1. the waveform just used has a time-bandwidth product of 50. recall that by preserving the same range resolution as the rectangular waveform, the linear fm waveform achieves a doppler resolution that is 50 times better.

coherent pulse train

as of the previous section, the doppler resolution of the linear fm waveform is still fairly poor. one way to improve this resolution is to further extend the pulse width. however, this approach will not work for two reasons:

  • the duty cycle of the waveform is already 50%, which is close to the practical limit. (even if one could, say, use a 100% duty cycle, it is still only a factor of 2 improvement, which is far from being able to resolve the issue.)

  • longer pulse width means large minimum detectable range, which is also undesirable.

if one cannot extend the pulse width within one pulse, one has to look beyond this boundary. indeed, in modern radar and sonar systems, the doppler processing often uses a coherent pulse train. the more pulses in the pulse train, the finer the doppler resolution.

to illustrate the idea, next, try a five-pulse burst.

release(lfmwav);
lfmwav.numpulses = 5;
trainsamples = lfmwav();

first, plot the zero-doppler cut of the ambiguity function.

[trainaf_delay,delay] = ambgfun(trainsamples,lfmwav.samplerate,lfmwav.prf,'cut','doppler');
figure
tiledlayout(2,1)
nexttile
plot(delay*1e6,trainaf_delay)
grid on
xlabel('delay \tau (us)')
ylabel({'ambiguity','function'})
title('ambiguity function, 0 mhz doppler cut')
nexttile
plot(delay*1e6,trainaf_delay)
grid on
xlabel('delay \tau (us)')
ylabel({'ambiguity','function'})
xlim([-2 2])

figure contains 2 axes objects. axes object 1 with title ambiguity function, 0 mhz doppler cut, xlabel delay \tau (us), ylabel ambiguity function contains an object of type line. axes object 2 with xlabel delay \tau (us), ylabel ambiguity function contains an object of type line.

notice that for the zero-doppler cut, the first null is still around 1 microsecond, so the range resolution is the same. one should see immediately the presence of many range domain peaks. these peaks are the tradeoff for using a pulse train. the distance between the main lobe and the first peak is the length of one entire pulse, i.e., the reciprocal of the prf.

t_max = 1/prf
t_max = 1.0007e-04

this time delay corresponds to the maximum unambiguous range.

the zero-delay cut also has peaks because of the pulse train.

[trainaf_doppler,doppler] = ambgfun(trainsamples,lfmwav.samplerate,lfmwav.prf,'cut','delay');
figure
tiledlayout(2,1)
nexttile
plot(doppler*1e-3,trainaf_doppler)
grid on
xlabel('doppler f_d (khz)')
ylabel({'ambiguity','function'})
title('ambiguity function, 0 us delay cut')
xlim([-bw bw]*1e-3)
nexttile
plot(doppler*1e-3,trainaf_doppler)
grid on
xlabel('doppler f_d (khz)')
ylabel({'ambiguity','function'})
xlim([-40 40])

figure contains 2 axes objects. axes object 1 with title ambiguity function, 0 us delay cut, xlabel doppler f_d (khz), ylabel ambiguity function contains an object of type line. axes object 2 with xlabel doppler f_d (khz), ylabel ambiguity function contains an object of type line.

the distance between the adjacent peaks is equal to prf. this value is the maximum unambiguous doppler shift the system can measure. one can also calculate the corresponding maximum unambiguous speed.

v_max = dop2speed(lfmwav.prf,freq2wavelen(fc))
v_max = 2.9959e 03

however, notice that the main lobe is now much sharper. careful examination reveals that the first null is at about 2 khz. this doppler resolution can actually be obtained by the following equation,

train_deltaf = lfmwav.prf/lfmwav.numpulses
train_deltaf = 1.9986e 03

i.e., the resolution is now determined by the length of our entire pulse train, not the pulse width of a single pulse. the corresponding speed resolution is now

train_deltav = dop2speed(train_deltaf,freq2wavelen(fc))
train_deltav = 599.1701

which is significantly better. more importantly, to get even finer speed resolution, one can simply increase the number of pulses included in the pulse train. of course, the number of pulses one can have in a burst depends on whether one can preserve the coherence for the entire duration, but that discussion is out of the scope of this example.

one may notice that in the zero-delay cut, the distance between the peaks is no longer constant, especially as the doppler shift increases. this lack of constancy occurs because the linear fm waveform's ambiguity function is tilted. hence, judging the separation of peaks in zero-delay cut can be misleading. the ambiguity caused by the pulse train is best observed from the top view, as the next code example shows. notice that along the edge of the ambiguity function, those sidelobes are indeed evenly spaced.

[trainaf,delay,doppler] = ambgfun(trainsamples,lfmwav.samplerate,lfmwav.prf);
figure
tiledlayout(2, 1)
nexttile
imagesc(delay*1e6,doppler/1e3,mag2db(trainaf));
xlim([-1/prf 1/prf]*5e6)
ylim([-bw bw]*1e-3)
clim([-30 0])
cbar = colorbar;
cbar.label.string = '(db)';
axis xy
xlabel('delay \tau (us)')
ylabel('doppler f_d (khz)')
nexttile
delay_idx = abs(delay) < 20e-6;
doppler_idx = abs(doppler) < 0.2e6;
contour(delay(delay_idx)*1e6,doppler(doppler_idx)/1e3,trainaf(doppler_idx,delay_idx))
xlabel('delay \tau (us)')
ylabel('doppler f_d (khz)')
colorbar
grid on
sgtitle('linear fm pulse train waveform ambiguity function')

figure contains 2 axes objects. axes object 1 with xlabel delay \tau (us), ylabel doppler f_d (khz) contains an object of type image. axes object 2 with xlabel delay \tau (us), ylabel doppler f_d (khz) contains an object of type contour.

because of all the peaks, this kind of ambiguity function is called a bed of nails ambiguity function.

stepped fm waveform

the linear fm waveform is very widely used in radar systems. however, it does present some challenges to the hardware. for one thing, the hardware has to be able to sweep the entire frequency range in one pulse. using this waveform also makes it harder to build the receiver because it has to accommodate the entire bandwidth.

to avoid these issues, you can use a stepped fm waveform instead. a stepped fm waveform consists of multiple contiguous cw pulses. each pulse has a different frequency and together, all pulses occupy the entire bandwidth. hence, there is no more sweep within the pulse, and the receiver only needs to accommodate the bandwidth that is the reciprocal of the pulse width of a single pulse.

next, set up such a stepped fm waveform.

stepfmwav = phased.steppedfmwaveform('samplerate', fs,'pulsewidth',5/bw,...
    'prf',prf,'numsteps',5,'frequencystep',bw/5,'numpulses',5)
stepfmwav = 
  phased.steppedfmwaveform with properties:
                samplerate: 3.9972e 06
     durationspecification: 'pulse width'
                pulsewidth: 5.0035e-06
                       prf: 9.9931e 03
     prfselectioninputport: false
             frequencystep: 1.9986e 05
                  numsteps: 5
     frequencyoffsetsource: 'property'
           frequencyoffset: 0
              outputformat: 'pulses'
                 numpulses: 5
             prfoutputport: false
    coefficientsoutputport: false
stepfmsamples = stepfmwav();

the zero-doppler cut, zero-delay cut, and two-dimensional plot of the ambiguity function are shown below.

[stepaf_delay,delay] = ambgfun(stepfmsamples,stepfmwav.samplerate,stepfmwav.prf,'cut','doppler');
figure;
tiledlayout(2,1)
nexttile
plot(delay*1e6,stepaf_delay)
grid on
xlabel('delay \tau (us)')
ylabel({'ambiguity','function'})
title('ambiguity function, 0 mhz doppler cut')
nexttile
plot(delay*1e6,stepaf_delay)
grid on
xlabel('delay \tau (us)')
ylabel({'ambiguity','function'})
xlim([-2 2])

figure contains 2 axes objects. axes object 1 with title ambiguity function, 0 mhz doppler cut, xlabel delay \tau (us), ylabel ambiguity function contains an object of type line. axes object 2 with xlabel delay \tau (us), ylabel ambiguity function contains an object of type line.

[stepaf_doppler,doppler] = ambgfun(stepfmsamples,stepfmwav.samplerate,stepfmwav.prf,'cut','delay');
figure
tiledlayout(2,1)
nexttile
plot(doppler*1e-3,stepaf_doppler)
grid on
xlabel('doppler f_d (khz)')
ylabel({'ambiguity','function'})
title('ambiguity function, 0 us delay cut')
xlim([-bw bw]*1e-3)
nexttile
plot(doppler*1e-3,stepaf_doppler)
grid on
xlabel('doppler f_d (khz)')
ylabel({'ambiguity','function'})
xlim([-40 40])

figure contains 2 axes objects. axes object 1 with title ambiguity function, 0 us delay cut, xlabel doppler f_d (khz), ylabel ambiguity function contains an object of type line. axes object 2 with xlabel doppler f_d (khz), ylabel ambiguity function contains an object of type line.

[stepaf,delay,doppler] = ambgfun(stepfmsamples,stepfmwav.samplerate,stepfmwav.prf);
 
figure
tiledlayout(2, 1)
nexttile
imagesc(delay*1e6,doppler/1e3,mag2db(stepaf)) 
xlim([-1/prf 1/prf]*5e6)
ylim([-bw bw]*1e-3)
clim([-30 0])
cbar = colorbar;
cbar.label.string = '(db)';
axis xy
xlabel('delay \tau (us)')
ylabel('doppler f_d (khz)')
nexttile
delay_idx = abs(delay) < 20e-6;
doppler_idx = abs(doppler) < 0.2e6;
contour(delay(delay_idx)*1e6,doppler(doppler_idx)/1e3,stepaf(doppler_idx,delay_idx))
xlabel('delay \tau (us)')
ylabel('doppler f_d (khz)')
colorbar
grid on
sgtitle('stepped fm waveform ambiguity function')

figure contains 2 axes objects. axes object 1 with xlabel delay \tau (us), ylabel doppler f_d (khz) contains an object of type image. axes object 2 with xlabel delay \tau (us), ylabel doppler f_d (khz) contains an object of type contour.

from these figures, one can make the following observations:

  • the first null in delay is still at 1 microsecond, so the range resolution is preserved. notice that because each pulse is different, the prominent peaks in the range domain disappear.

  • the first null in doppler is still at 2 khz, so it has the same doppler resolution as the 5-pulse linear fm pulse train. the sidelobes in the doppler domain are still present as in the linear fm pulse train case.

  • the ambiguity function of the stepped fm waveform also has a bed of nails type. although the unambiguous range is greatly extended, the unambiguous doppler is still confined by the waveform's prf.

as to the disadvantage of a stepped fm waveform, the processing becomes more complicated.

nonlinear fm waveforms

previous sections in this example showed that a linear fm pulse with a large time-bandwidth product can achieve a good resolution in range, while a coherent train of such pulses allows for achieving a good resolution in speed. waveforms with large time-bandwidth products can also be generated by employing nonlinear fm. by selecting a particular nonlinear fm one can obtain a waveform with an ambiguity function that possesses some desired properties. for example, nonlinear fm can be used to obtain waveforms with low range sidelobes.

the shape of the waveform's spectrum determines the range sidelobe level. the spectrum of a linear fm pulse has an approximately rectangular shape. this is the reason the range sidelobes of a linear fm are 13.2 db below the main lobe. such relatively high sidelobe level might not be suited for some radar and sonar applications. the sidelobe level reduction can be accomplished by applying a window (taper) on the received side. the windowing, however, perturbs the matched filter result. since the cumulative filtering no longer matches the signal exactly, it also reduces the output snr. in contrast to linear fm, nonlinear fm waveforms can achieve low range sidelobes by shaping the spectrum using frequency modulation. in this case the time domain envelope remains constant and the loss in snr is not incurred.

various nonlinear functions can be used to modulate the instantaneous frequency of nonlinear fm waveforms. often a nonlinear fm waveform is constructed by combining linear and nonlinear frequency modulation. for example, in [3] a hybrid nonlinear fm waveform is presented that is a combination of a linear and a tangent fm.

to construct a hybrid linear-tangent fm waveform two additional parameters must be specified. the first parameter, alpha, determines the balance between the linear and the tangent components. if alpha is zero, the resulting waveform will have only linear frequency modulation. if alpha is one, the instantaneous frequency of the resulting waveform will follow the tangent curve. the second parameter, gamma, determines the portion of the tangent curve that is used. by adjusting alpha and gamma the range sidelobes of the hybrid linear-tangent fm waveform can be made significantly lower than -13.2 db, while keeping the range resolution close to the range resolution of the linear fm.

create a hybrid linear-tangent fm waveform with the same pulse width, bandwidth, and prf as the linear fm discussed in the earlier sections.

alpha = 0.5;
gamma = 1.4;
nlfmwav = phased.nonlinearfmwaveform('samplerate',fs,'pulsewidth',tau_fm, ...
    'sweepbandwidth',bw,'frequencymodulation','hybrid linear-tangent', ...
    'lineartangentbalance',alpha,'tangentcurveportion',gamma,'prf',prf)
nlfmwav = 
  phased.nonlinearfmwaveform with properties:
                samplerate: 3.9972e 06
     durationspecification: 'pulse width'
                pulsewidth: 5.0035e-05
                       prf: 9.9931e 03
     prfselectioninputport: false
       frequencymodulation: 'hybrid linear-tangent'
      lineartangentbalance: 0.5000
       tangentcurveportion: 1.4000
            sweepbandwidth: 9.9931e 05
            sweepdirection: 'up'
             sweepinterval: 'positive'
                  envelope: 'rectangular'
     frequencyoffsetsource: 'property'
           frequencyoffset: 0
              outputformat: 'pulses'
                 numpulses: 1
             prfoutputport: false
    coefficientsoutputport: false

compute and plot in the db scale the zero-doppler cut of the ambiguity function for the hybrid linear-tangent fm. for comparison show the corresponding zero-doppler cut for the linear fm waveform.

nlfmsamples = nlfmwav();
[nlfmaf_delay, delay] = ambgfun(nlfmsamples,fs,prf,'cut','doppler');
 
figure
hold on
plot(delay*1e6,mag2db(lfmaf_delay),'--')
plot(delay*1e6,mag2db(nlfmaf_delay))
yline(-23.5,'label','sidelobe level (-23.5 db)')
grid on
xlabel('delay \tau (us)')
ylabel({'ambiguity function (db)'})
xlim([-tau_fm tau_fm]*3e5)
ylim([-50 0])
title('ambiguity function, 0 mhz doppler cut');
legend('linear fm', 'nonlinear fm')

figure contains an axes object. the axes object with title ambiguity function, 0 mhz doppler cut, xlabel delay tau blank ( u s ), ylabel ambiguity function (db) contains 3 objects of type line, constantline. these objects represent linear fm, nonlinear fm.

the zero-doppler cut of the ambiguity function for the hybrid linear-tangent fm shows that the first null occurs at around 1.5 microseconds. this means that the range resolution is degraded to 225 m compared to 150 m for linear fm with the same bandwidth. the range sidelobe level, however, is more than 10 db lower.

nonlinear fm can also be used to generate a waveform with a thumbtack ambiguity function. an ideal thumbtack ambiguity function has a single sharp peak at the origin and a near-zero level everywhere else [1]. waveforms with a thumbtack ambiguity are doppler sensitive (doppler intolerant) but can achieve high range and doppler resolution. an example of a nonlinear fm that has a thumbtack ambiguity function is the generalized sinusoidal fm (gsfm) waveform [4]. the code below generates a gsfm waveform.

% instantaneous frequency of a gsfm waveform
rho = 1.9;               % variable exponent parameter
alpha = 1e9;             % frequency modulation term
gsfm_finst = @(t)((bw/2)*sin(2*pi*alpha*t.^rho));
 
gsfmwav = phased.customfmwaveform('samplerate',fs,...
    'pulsewidth',tau_fm,'frequencymodulation',gsfm_finst,'prf',prf)
gsfmwav = 
  phased.customfmwaveform with properties:
                samplerate: 3.9972e 06
     durationspecification: 'pulse width'
                pulsewidth: 5.0035e-05
                       prf: 9.9931e 03
     prfselectioninputport: false
       frequencymodulation: @(t)((bw/2)*sin(2*pi*alpha*t.^rho))
                  envelope: 'rectangular'
     frequencyoffsetsource: 'property'
           frequencyoffset: 0
              outputformat: 'pulses'
                 numpulses: 1
             prfoutputport: false
    coefficientsoutputport: false
gsfmsamples = gsfmwav();

the thumbtack nature of the ambiguity function with a single peak at the origin surrounded by low sidelobes is clearly visible in the contour plot.

figure
ambgfun(gsfmsamples,fs,prf)
xlim([-tau_fm tau_fm]*0.5e6)
ylim([-bw bw]*0.5e-6)

figure contains an axes object. the axes object with title ambiguity function, xlabel delay tau blank ( u s ), ylabel doppler f indexof d baseline blank ( m h z ) contains an object of type contour.

barker-coded waveform

another important group of waveforms is phase-coded waveforms, among which the popularly used ones are barker codes, frank codes, and zadoff-chu codes. in a phase-coded waveform, a pulse is divided into multiple subpulses, often referred to as chips, and each chip is modulated with a given phase. all phase-coded waveforms have good autocorrelation properties which make them good candidates for pulse compression. thus, if a phase-coded waveform is adopted, it could lower the probability of interception as the energy is spread into chips. at the receiver, a properly configured matched filter could suppress the noise and achieve good range resolution.

barker code is one of the most well-known phase-coded waveforms. a barker-coded waveform can be constructed using the following command.

barkerwav = phased.phasecodedwaveform('code','barker','numchips',7,...
    'samplerate', fs,'chipwidth',tau,'prf',prf)
barkerwav = 
  phased.phasecodedwaveform with properties:
                samplerate: 3.9972e 06
                      code: 'barker'
                 chipwidth: 1.0007e-06
                  numchips: 7
                       prf: 9.9931e 03
     prfselectioninputport: false
     frequencyoffsetsource: 'property'
           frequencyoffset: 0
              outputformat: 'pulses'
                 numpulses: 1
             prfoutputport: false
    coefficientsoutputport: false
barkersamples = barkerwav();

this barker code consists of 7 chips. its zero-doppler cut of the ambiguity function is given by

ambgfun(barkersamples,barkerwav.samplerate,barkerwav.prf,'cut','doppler')
xlim([-tau tau]*10e6)

figure contains an axes object. the axes object with title ambiguity function, 0 mhz doppler cut, xlabel delay tau blank ( u s ), ylabel ambiguity function contains an object of type line.

from the figure, one can see that the zero-doppler cut of a barker code's ambiguity function has an interesting property. all its sidelobes have the same height and are exactly 1/7 of the main lobe. in fact, a length-n barker code can provide a peak-to-peak suppression of n, which helps distinguish closely located targets in range. this is the most important property of the barker code. the range resolution is approximately 10 microseconds, the same as the chip width.

there are two issues associated with a barker code. first, there are only seven known barker codes. their lengths are 2, 3, 4, 5, 7, 11 and 13. it is believed that there are no other barker codes. second, the doppler performance of the barker code is fairly poor. although the ambiguity function has good shape at the zero-doppler cut, once there is some doppler shift, the sidelobe level increases significantly. barker codes are doppler sensitive with a thumbtack ambiguity function.

these properties of the barker code are visible in the contour plot of the ambiguity function.

ambgfun(barkersamples,barkerwav.samplerate,barkerwav.prf)
xlim([-tau tau]*10e6)
ylim([-bw bw]*1e-6)

figure contains an axes object. the axes object with title ambiguity function, xlabel delay tau blank ( u s ), ylabel doppler f indexof d baseline blank ( m h z ) contains an object of type contour.

summary

this example shows how to use the ambiguity function to analyze and compare waveforms. it compares several common waveforms including the rectangular waveform, the linear fm waveform, the stepped fm waveform, the hybrid linear-tangent fm waveform, the generalized sinusoidal fm waveform, and the barker-coded waveform. the example shows that the ambiguity function is a convenient tool for analyzing doppler tolerance of a waveform, its delay and doppler resolution capabilities, and the sidelobe level.

reference

[1] nadav levanon and eli mozeson, radar signals, wiley-ieee press, 2004.

[2] mark richards, fundamentals of radar signal processing, mcgraw hill, 2005.

[3] collins, t., and p. atkins. "nonlinear frequency modulation chirps for active sonar." iee proceedings-radar, sonar and navigation 146.6 (1999): 312-316.

[4] hague, david a., and john r. buck. "the generalized sinusoidal frequency-modulated waveform for active sonar." ieee journal of oceanic engineering 42.1 (2016): 109-123.

网站地图