/ 8_Utils / Python / Ramp_Frequency.py
Ramp_Frequency.py
1  import numpy as np
2  import matplotlib.pyplot as plt
3  n = np.arange(0, 61, 1)
4  Ts=8*pow(10,-9)
5  y = 1 + np.sin(2*np.pi*(-16*pow(10,12)*pow(n,2)*pow(Ts,2)+16*pow(10,6)*n*Ts))
6  plt.plot(n, y)
7  plt.show()