Mercurial > hg > aimmat
annotate aim-mat/modules/bmm/pzfc/PZFC_b2.m @ 4:537f939baef0 tip
various bug fixes and changed copyright message
author | Stefan Bleeck <bleeck@gmail.com> |
---|---|
date | Tue, 16 Aug 2011 14:37:17 +0100 |
parents | 74dedb26614d |
children |
rev | line source |
---|---|
tomwalters@0 | 1 function b2 = PZFC_b2(B2, B21, Pp, n2); |
tomwalters@0 | 2 % compute the power-dependent pole position coeff b2 for the PZFC filter |
tomwalters@0 | 3 % (same as OZGF_b2 until/unless we change it) |
tomwalters@0 | 4 |
tomwalters@0 | 5 % try for 1.0 input-output slope approx when B21 is about like B2: |
tomwalters@0 | 6 b2 = B2 * 10^((B21/(B2*n2)) * (Pp - 60)/20); % arbitrary 60 dB ref point |
tomwalters@0 | 7 |
tomwalters@0 | 8 % limit to a ridiculously small value: |
tomwalters@0 | 9 if b2 <= 0.2 |
tomwalters@0 | 10 b2 = 0.2; |
tomwalters@0 | 11 end |