www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PeriodicAmbiguityFunctionAtZeroDelayCutExample.m
%% Zero Delay Cut of Periodic Ambiguity Function % Plot a cut at zero delay for the periodic ambiguity function of a rectangular pulse waveform for % five periods. Assume the pulse repetition frequency is 10.0 kHz and that % the sampling frequency is a multiple of the PRF. Return the % Doppler and delay values from the function. PRF = 10.0e3; fs = 101*PRF; waveform = phased.RectangularWaveform('SampleRate',fs,'PulseWidth',1e-5, ... 'NumPulses',1,'PRF',PRF); wav = waveform(); %% % Find the periodic ambiguity functions along a zero delay cut for one and % for five periods. [pamf,delays,doppler] = pambgfun(wav,fs,1); f1 = pamf(:,101); [pamf,delays,doppler] = pambgfun(wav,fs,5); f2 = pamf(:,101); %% % Plot the periodic ambiguity functions. plot(doppler/1000,f1) hold on plot(doppler/1000,f2) xlabel('Doppler Shift (kHz)') legend('One-Period PAF','Five-Period PAF')