s = tf('s'); Ts = 1e-4; Glpf = 1/(1 + s/2/pi/500); Gz = c2d(Glpf, Ts, 'tustin');