function X=spektrum(x) fs=8000; xf = fft(x); ff = (0:127) / 256 * fs; plot(ff, 2*abs(xf(1:128))); title('Amplitudove spektrum');