System object: phased.PhaseCodedWaveform
Samples of phase-coded waveform
Y = step(H)
Y = step(H) returns samples of the phase-coded pulse in a column vector, Y.
Note: H specifies the System object™ on which to run this step method.
The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.
Generate samples of two pulses of a phase-coded pulse waveform that uses the Zadoff-Chu code.
hw = phased.PhaseCodedWaveform('Code','Zadoff-Chu',... 'ChipWidth',1e-6,'NumChips',16,... 'OutputFormat','Pulses','NumPulses',2); x = step(hw); figure; plot(real(x)); title('Waveform Output, Real Part'); xlabel('Samples'); ylabel('Amplitude (V)');