can you guys help me about this code,
fs = 1000
num_fft = 1024;
t = np.arange(0, 1, 1/fs)
f0 = 100
f1 = 200
x = np.cos(2*np.pi*f0*t) + 3*np.cos(2*np.pi*f1*t) + np.random.randn(t.size)
Y = fft(x, num_fft)
Y = np.abs(Y)
ps = Y**2 / num_fft
...
i found this code in internet, i do not understand what is the pupose of 'num_fft' in that code? and how to get the value? in the code above, here is worth 1024.
hope you can help me and thank you for all the help.