Note
Click here to download the full example code
Linear Frequency and Gaussian Amplitude ModulationΒΆ
Generate a mono-component nonstationary signal with linear frequency modulation and Gaussian amplitude modulation.
from tftb.generators import fmlin, amgauss
from numpy import real
import matplotlib.pyplot as plt
fm, _ = fmlin(256)
am = amgauss(256)
signal = fm * am
plt.plot(real(signal))
plt.xlabel('Time')
plt.ylabel('Real part')
plt.title('Linear Frequency, Gaussian Amplitude')
plt.xlim(0, 256)
plt.grid()
plt.show()
Total running time of the script: ( 0 minutes 0.156 seconds)