commpy.utilities.upsample

upsample(x, n)

Upsample the input array by a factor of n

Adds n-1 zeros between consecutive samples of x

Parameters:
  • x (1D ndarray) – Input array.
  • n (int) – Upsampling factor
Returns:

y – Output upsampled array.

Return type:

1D ndarray