Scilab Function

ss2ss - state-space to state-space conversion, feedback, injection

Calling Sequence

[Sl1,right,left]=ss2ss(Sl,T, [F, [G , [flag]]])

Parameters

Description

Returns the linear system Sl1=[A1,B1,C1,D1] where A1=inv(T)*A*T, B1=inv(T)*B, C1=C*T, D1=D.

Optional parameters F and G are state feedback and output injection respectively.

For example, Sl1=ss2ss(Sl,T,F) returns Sl1 with:

and right is a non singular linear system such that Sl1=Sl*right.

Sl1*inv(right) is a factorization of Sl.

Sl1=ss2ss(Sl,T,0*F,G) returns Sl1 with:

and left is a non singular linear system such that Sl1=left*Sl (right=Id if F=0).

When both F and G are given, Sl1=left*Sl*right.

  • - When flag is used and flag=1 an output injection as follows is used
  • and then a feedback is performed, F must be of size (m+p,n)

    ( x is in R^n , y in R^p, u in R^m ).

    right and left have the following property:

      Sl1 =  left*sysdiag(sys,eye(p,p))*right 
       
  • - When flag is used and flag=2 a feedback (F must be of size (m,n)) is performed and then the above output injection is applied. right and left have the following property:
  •   Sl1 = left*sysdiag(sys*right,eye(p,p)))
       

    Examples

    See Also