imp_invar
Function File: [b_out, a_out] = imp_invar (b, a, fs, tol)
Function File: [b_out, a_out] = imp_invar (b, a, fs)
Function File: [b_out, a_out] = imp_invar (b, a)
Function File: [sys_out] = imp_invar (b, a, fs. tol)
Function File: [sys_out] = imp_invar (sys_in, fs, tol)
Converts analog filter with coefficients b and a and/or sys_in to digital, conserving impulse response.
MIMO systems are only supported with sys_in as input argument.
Inputs
Outputs
Algorithm
The step equivalent discretization of G(s) (zoh) results in G_zoh(z) = (z-1)/z * Z{G(s)/s} where Z{} is the z-transformation. The transfer function of the impulse equivalent discretization is given by T*Z{G(s)}. Therefore, the zoh discretizaiton method for s*G(s) multipled by T*z/(z-1) leads to the desired result.
Remark
For the impulse response of a discrete-time system, the input sequence {1/T,0,0,0,...} and not the unit impulse is considered. For this reason, the factor T is required for the impulse invaraint discretizaiton (see Algorithm).
See also: @lti/c2d
Source Code: imp_invar