6th Semester Files

This commit is contained in:
2024-02-22 14:22:36 -05:00
commit e39a9fec53
147 changed files with 33139 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import numpy as np
import matplotlib.pyplot as plt
PI = np.pi
fs = 20000
t = np.arange(0, 1, 1/fs)
fB = np.arange(0,2001,1)
fC = 10000
m = np.zeros_like(t)
for f in fB:
m += np.cos(2*PI*f*t)*(-abs(f-1000)/1000 + 1)
c = np.cos(2*PI*fC*t)
s = m*c
plt.plot(np.arange(0,fs), abs(np.fft.fft(s)))
plt.show()