Pretty much all of Fall 2024

This commit is contained in:
Aidan Sharpe
2024-11-10 14:46:30 -05:00
parent 87f9c55360
commit faa05b88f9
116 changed files with 8295 additions and 1683 deletions

View File

@ -0,0 +1,24 @@
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
f_c = 1
f_m = f_c/4
omega_m = 2*np.pi*f_m
omega_c = 2*np.pi*f_c
T_c = f_c
t = np.arange(0,10,T_c/10)
m = np.cos(omega_m * t)
plt.plot(t, m)
plt.show()
D_p = np.pi
D_f = np.pi
S_p = np.cos(omega_c + D_p*m)
plt.plot(t,S_p)
plt.show()

View File

@ -0,0 +1,26 @@
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
# Modulation index
beta = 2.0
# Number of impulses is 2*(beta+1) + 1.
# For beta=2, the number of impulses is 3 either side of the center frequency
# plus 1 for the center frequency, for a total of 7 impulses.
# Message frequency
f_m = 15E+3
# Transmission bandwidth
B_T = 2*(beta+1)*f_m
n = np.arange(0,10,1)
bessel_values = sp.special.jv(n,beta)
bessel_power = np.cumsum(bessel_values)
plt.stem(n, bessel_values)
plt.plot(n, bessel_power)
plt.hlines(0.98*bessel_power[-1], xmin=n[0], xmax=n[-1])
plt.show()
#