Root Work Programming Misc Spectral Analysis

[dB]: 10log10( |h|2 ) = 20log10( |h| )

---

 y = fft(x);

 f = (0:length(y)-1)*(Fs-1)/length(y); % frequency vector

 Pf = (abs(y).^2)/length(y);

 Pf = (y.*conj(y))/length(y);

---

  Absolute value	dB

  100			40
  10			20
  1			0
  0.1			-20
  0.01			-40

 octave - factor of two

 decade - factor of ten

 spatial frequency bandwidth:

 (logFh - logFl) / log2

 where Fh and Fl are the high- and low-frequency half-amplitude points, respectively.