MATLAB Answers

ENBW documentation is ambiguous/incorrect.

8 views (last 30 days)
Andrew Roscoe
Andrew Roscoe on 19 Aug 2016
Answered: Greg Dionne on 27 Feb 2017
In the ENBW documentation page http://uk.mathworks.com/help/signal/ref/enbw.html#btrihsq-1, the enbw(window(N),Fs) function is described as returning the two-sided bandwidth (in Hz) of a window. As far as I can see, this is a correct statement and evaluates (for all w(i) in N samples)
ENBW * (Fs/N) = (N * sum(w(i)^2)/sum(w(i))^2) * (Fs/N)
But, the example code given in EquivalentRectangularNoiseBandwidthExample.m clearly contains the lines:
bw = enbw(hann(1000),Fs)
.
.
.
plots:plot(bw*[-1 -1 1 1],[-40 maxgain maxgain -40],'--')
Surely this is incorrect and the example should plot:
plots:plot(bw/2*[-1 -1 1 1],[-40 maxgain maxgain -40],'--')
Andrew

  0 Comments

Sign in to comment.

Accepted Answer

Greg Dionne
Greg Dionne on 27 Feb 2017
Looks like this is fixed now.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags


Translated by