Syncing to work on interview with entrepreneur essay
This commit is contained in:
14
6th-Semester-Spring-2024/DSP/Labs/Lab-04/lab4-1.py
Normal file
14
6th-Semester-Spring-2024/DSP/Labs/Lab-04/lab4-1.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
N = 8
|
||||
n = np.arange(N)
|
||||
x = (-1.0)**n
|
||||
DFT_8_point = np.fft.fft(x, 8)
|
||||
DFT_9_point = np.fft.fft(x, 9)
|
||||
|
||||
plt.stem(abs(DFT_8_point))
|
||||
plt.show()
|
||||
|
||||
plt.stem(abs(DFT_9_point))
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user