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

    %% Create Pulse Coded Waveform
% Generate samples of two pulses of a phase-coded pulse waveform that uses
% the Zadoff-Chu code.
sPCW = phased.PhaseCodedWaveform('Code','Zadoff-Chu',...
    'ChipWidth',1e-6,'NumChips',16,...
    'OutputFormat','Pulses','NumPulses',2);
wav = step(sPCW);
fs = sPCW.SampleRate;
nsamps = size(wav,1);
t = [0:(nsamps-1)]/fs;
plot(t*1e6,real(wav))
title('Waveform: Real Part')
xlabel('Time (\mu sec)')
ylabel('Amplitude')
grid