convert discrete-凯发k8网页登录
this example shows how to convert a discrete-time system to continuous time using d2c
, and compare the results using two different interpolation methods.
convert the following second-order discrete-time system to continuous time using the zero-order hold (zoh) method:
g = zpk(-0.5,[-2,5],1,0.1); gcz = d2c(g)
warning: the model order was increased to handle real negative poles.
gcz = 2.6663 (s^2 14.28s 780.9) ------------------------------- (s-16.09) (s^2 - 13.86s 1035) continuous-time zero/pole/gain model.
when you call d2c
without specifying a method, the function uses zoh by default. the zoh interpolation method increases the model order for systems that have real negative poles. this order increase occurs because the interpolation algorithm maps real negative poles in the domain to pairs of complex conjugate poles in the domain.
convert g to continuous time using the tustin method.
gct = d2c(g,'tustin')
gct = 0.083333 (s 60) (s-20) ---------------------- (s-60) (s-13.33) continuous-time zero/pole/gain model.
in this case, there is no order increase.
compare frequency responses of the interpolated systems with that of g
.
bode(g,gcz,gct) legend('g','gcz','gct')
in this case, the tustin method provides a better frequency-domain match between the discrete system and the interpolation. however, the tustin interpolation method is undefined for systems with poles at z = -1 (integrators), and is ill-conditioned for systems with poles near z = 1.
see also
functions
- |