Extend the pulse waveform to a given duration.
- Parameters:
pulse (ndarray) – Pulse waveform.
duration (float) – Desired pulse duration in seconds.
dt (float) – Time step in seconds.
axis (int, optional) – Axis along which to extend the waveform. Default is 0.
- Returns:
Extended pulse waveform.
- Return type:
ndarray
Notes
The pulse waveform is extended to the desired duration by appending zeros
to the end of the waveform.