Skip to content

Instantly share code, notes, and snippets.

@kumanna
Created October 7, 2025 11:39
Show Gist options
  • Select an option

  • Save kumanna/f8703216c50c8ecdb53d2569e5662285 to your computer and use it in GitHub Desktop.

Select an option

Save kumanna/f8703216c50c8ecdb53d2569e5662285 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
T = 1
Ts = 1e-3
t = np.arange(-3, 10, Ts)
symbols = [1, 1, 1, 1]
N_SYMBOLS = len(symbols)
resulting_signal = np.zeros_like(t)
for i, s in enumerate(symbols):
resulting_signal += np.sinc((t - i * T) / T) * symbols[i]
plt.plot(t, resulting_signal)
plt.grid()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment