Small correction: When you plot the fft over all nfft points, it isn't the spectrum from 0-48 kHz. It's the spectrum from -24 kHz to +24 kHz. The reason we plot only until nfft/2 isn't the range of audible frequencies but the Nyquist theorem which says that any frequency over fs/2 will lead to aliasing in the spectrum. For a real valued time domain signal, the DFT-coefficients for negative frequencies are the conjugates of the ones for positive frequencies which is why it looks symmetrical in the abs-spectrum.
i am getting all 0 for the frequency domain. I double checked the code and didnt find any difference. I tried to format my audio file into mono and still getting the same result. Can anybody help me?
Unrecognized function or variable 'linespace'. Error in program22 (line 6) t = linespace(0,length(y)/fs,length(y)); please verify and resolve this error
Small correction: When you plot the fft over all nfft points, it isn't the spectrum from 0-48 kHz. It's the spectrum from -24 kHz to +24 kHz. The reason we plot only until nfft/2 isn't the range of audible frequencies but the Nyquist theorem which says that any frequency over fs/2 will lead to aliasing in the spectrum.
For a real valued time domain signal, the DFT-coefficients for negative frequencies are the conjugates of the ones for positive frequencies which is why it looks symmetrical in the abs-spectrum.
Thank you very much for your video. What is the unit of amplitude in the time domain of noise? Is it Pa?
thankyou dude, good explanation and to the point
A nice detailed video, thanks
In what units is the amplitude?
u saved my lifeeeeeeeee
Thanks 🌹
Glad you liked the video, do considering subscribing to our channel and supporting us :)
The frequency domain is all 0. What is wrong?
yeah same
@PRADEEP SINGH noice
I'm not sure at all. I got the same problem, so I converted my audio into a monophonic version and now it's seems to work.
i am getting all 0 for the frequency domain. I double checked the code and didnt find any difference. I tried to format my audio file into mono and still getting the same result. Can anybody help me?
Make sure your f is a value 2 x fs or more
why did you take nfft as 1024
It's only arbitrary 🙂
Unrecognized function or variable 'linespace'.
Error in program22 (line 6)
t = linespace(0,length(y)/fs,length(y));
please verify and resolve this error
t = linspace(0,length(y)/fs,length(y)0;
its linspace not linespace.