Hello. I must say, in Matlab I am a newbie, please do not swear.
I have an audio file recorded in it is white noise with a frequency of from 100-10000 Hz,
Required to construct the spectrum of this audio file
googled what it takes f-tsiya fft in Matlab (https://www.mathworks.com/help/matlab/ref/fft.html),
tried to build something
L = 1000; % Length of signal
Y = fft(y);
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
f = Fs*(0:(L/2))/L;
title('Single-Sided Amplitude Spectrum of X(t)')
It is not clear that here P1?
And maybe there is some ready code for my problem?