">    7</span>&#160;Y = fft(y,NFFT)/L;              % FFT divided by the length to get the power</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;f = Fs/2*linspace(0,1,NFFT/2+1);% Frequency vector</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;spectrum=2*abs(Y(1:NFFT/2+1));  % Single-sided amplitude spectrum</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><spa