Bio lab 1

This commit is contained in:
Aidan Sharpe
2025-01-27 15:39:08 -05:00
parent dc9297f899
commit a8d26aeea6
8 changed files with 23 additions and 7 deletions

View File

@@ -3,17 +3,18 @@ import matplotlib.pyplot as plt
def main():
#x_axis = np.linspace(-5, 5, 100)
f_s = 3
f_s = 6
T_s = 1/f_s
t = np.arange(-1, 1, T_s)
x_axis = np.arange(-5, 5, T_s)
x_axis_2 = np.linspace(-5, 5, len(x_axis))
y_axis = x_axis**2
f = 3
omega = 2*np.pi*f
signal = np.cos(omega*t)
plt.stem(x_axis, y_axis)
plt.stem(t, signal)
plt.show()
if __name__ == "__main__":
main()