Non periodic square function train in python
05:43 07 Nov 2022

How can I plot a square-like (non periodic) signal like the one in the image using python? with0 "n" the number of pulses, "p" the time between them, pulse duration, amplitude and "offset" as variables.

Pulse train over time

Already tried scipy.signal.square but im looking for a non periodic solution.

python signals pulse-signal