ENBW documentation is ambiguous/incorrect.

4 ビュー (過去 30 日間)
Andrew Roscoe
Andrew Roscoe 2016 年 8 月 19 日
回答済み: Greg Dionne 2017 年 2 月 27 日
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

採用された回答

Greg Dionne
Greg Dionne 2017 年 2 月 27 日
Looks like this is fixed now.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by