www.gusucode.com > phased 案例源码 matlab代码程序 > phased/CreateSingleLFMPulseExample.m

    %% Create Linear FM Pulses
% Construct a linear FM waveform having a sweep bandwidth of 300 kHz, a
% sample rate of 1 MHz, a pulse width of 50 microseconds, and a pulse
% repetition frequency of 10 kHz. Generate two pulses.
sLFM = phased.LinearFMWaveform('SweepBandwidth',3e5,...
    'OutputFormat','Pulses','SampleRate',1e6,...
    'PulseWidth',50e-6,'PRF',10e3,'NumPulses',2);
%%
% Obtain and plot the linear FM waveform.
wav = step(sLFM);
numpulses = size(wav,1);
t = [0:(numpulses-1)]/sLFM.SampleRate;
plot(t*1e6,real(wav))
xlabel('Time (\mu sec)')
ylabel('Amplitude')