flts time response (discrete time, sampled system) Calling Sequence [y [,x]]=flts(u,sl [,x0]) [y]=flts(u,sl [,past]) Arguments u matrix (input vector) sl list (linear system syslin) x0 vector (initial state ; default value=0) past matrix (of the past ; default value=0) x,y matrices (state and output) Description State-space form: sl is a discrete linear system given by its state space representation (see syslin ): sl=syslin('d',A,B,C,D) : or, more generally, if D is a polynomial matrix (p = degree(D(z))) : Transfer form: y=flts(u,sl[,past]). Here sl is a linear system in transfer matrix representation i.e sl=syslin('d',transfer_matrix) (see syslin ). is the matrix of past values of u and y. nd is the maximum of degrees of lcm's of each row of the denominator matrix of sl. p is the difference between maximum degree of numerator and maximum degree of denominator Examples sl=syslin('d',1,1,1);u=1:10; y=flts(u,sl); plot2d(y) [y1,x1]=flts(u(1:5),sl);y2=flts(u(6:10),sl,x1); y-[y1,y2] z=poly(0,'z'); D=1+z+z^2; p =degree(D); sl=syslin('d',1,1,1,D); y=flts(u,sl);[y1,x1]=flts(u(1:5),sl); y2=flts(u(5-p+1:10),sl,x1); y-[y1,y2] z=poly(0,'z'); h=syslin(0.1,(1-2*z)/(z^2+0.3*z+1)) imprep=flts(eye(1,20),tf2ss(h)); clf(); plot(imprep,'b') u=ones(1,20); stprep=flts(ones(1,20),tf2ss(h)); plot(stprep,'g') See Also ltitr dsimul rtitr