FUNCTION REFERENCE
bilinear
Bilinear transformation of an analog filter into a digital one.
Bilinear transformation of an analog filter into a digital one.
Syntax
[bz, az] = bilinear(b, a, fs)Syntax
[bz, az] = bilinear(b, a, fs, fp)Syntax
[zd, pd, kd] = bilinear(z, p, k, fs)Syntax
[zd, pd, kd] = bilinear(z, p, k, fs, fp)Substitutes s = 2*fs*(z-1)/(z+1). With a match frequency fp (Hz, below fs/2) the scale is 2*pi*fp/tan(pi*fp/fs), so the analog and digital responses are equal at fp. b and a are row vectors in descending powers of s (numerator degree at most the denominator's); the result is normalized to az(1) = 1. In the zero-pole-gain form (p a column), each root maps to (1+r/(2fs))/(1-r/(2fs)) and missing zeros go to -1.
Example
[bz, az] = bilinear(1, [1 1], 10) % bz = [1 1]/21, az = [1 -19/21]Example
[zd, pd, kd] = bilinear([], -2*pi*50, 2*pi*50, 1000, 50);Differences from MATLAB: the state-space form (A, B, C, D) is not supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.