- Aide Scilab
- CACSD
- chart
- abcd
- abinv
- arhnk
- arl2
- arma
- arma2p
- armac
- armax
- armax1
- arsimul
- augment
- balreal
- bilin
- black
- bode
- bstap
- cainv
- calfrq
- canon
- ccontrg
- cls2dls
- colinout
- colregul
- cont_frm
- cont_mat
- contr
- contrss
- copfac
- csim
- ctr_gram
- dbphi
- dcf
- ddp
- des2ss
- des2tf
- dhinf
- dhnorm
- dscr
- dsimul
- dt_ility
- dtsi
- equil
- equil1
- evans
- feedback
- findABCD
- findAC
- findBD
- findBDK
- findR
- findx0BD
- flts
- fourplan
- frep2tf
- freq
- freson
- fspecg
- fstabst
- g_margin
- gainplot
- gamitg
- gcare
- gfare
- gfrancis
- gtild
- h2norm
- h_cl
- h_inf
- h_inf_st
- h_norm
- hallchart
- hankelsv
- hinf
- imrep2ss
- inistate
- invsyslin
- kpure
- krac2
- lcf
- leqr
- lft
- lin
- linf
- linfn
- linmeq
- lqe
- lqg
- lqg2stan
- lqg_ltr
- lqr
- ltitr
- m_circle
- macglov
- markp2ss
- minreal
- minss
- mucomp
- narsimul
- nehari
- nicholschart
- noisegen
- nyquist
- obs_gram
- obscont
- observer
- obsv_mat
- obsvss
- p_margin
- parrot
- pfss
- phasemag
- ppol
- prbs_a
- projsl
- reglin
- repfreq
- ric_desc
- ricc
- riccati
- routh_t
- rowinout
- rowregul
- rtitr
- sensi
- sgrid
- show_margins
- sident
- sm2des
- sm2ss
- sorder
- specfact
- ss2des
- ss2ss
- ss2tf
- st_ility
- stabil
- svplot
- sysfact
- syssize
- tf2des
- tf2ss
- time_id
- trzeros
- ui_observer
- unobs
- zeropen
- zgrid
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
ss2ss
state-space to state-space conversion, feedback, injection
Calling Sequence
[Sl1,right,left]=ss2ss(Sl,T, [F, [G , [flag]]])
Arguments
- Sl
linear system (
syslin
list) in state-space form- T
square (non-singular) matrix
- Sl1, right, left
linear systems (syslin lists) in state-space form
- F
real matrix (state feedback gain)
- G
real matrix (output injection gain)
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 andflag=1
an output injection as follows is usedand then a feedback is performed,
F
must be of size(m+p,n)
right
andleft
have the following property:When
flag
is used andflag=2
a feedback (F
must be of size(m,n)
) is performed and then the above output injection is applied.right
andleft
have the following property:
Examples
Sl=ssrand(2,2,5); trzeros(Sl) // zeros are invariant: Sl1=ss2ss(Sl,rand(5,5),rand(2,5),rand(5,2)); trzeros(Sl1), trzeros(rand(2,2)*Sl1*rand(2,2)) // output injection [ A + GC, (B+GD,-G)] // [ C , (D , 0)] p=1,m=2,n=2; sys=ssrand(p,m,n); // feedback (m,n) first and then output injection. F1=rand(m,n); G=rand(n,p); [sys1,right,left]=ss2ss(sys,rand(n,n),F1,G,2); // Sl1 equiv left*sysdiag(sys*right,eye(p,p))) res=clean(ss2tf(sys1) - ss2tf(left*sysdiag(sys*right,eye(p,p)))) // output injection then feedback (m+p,n) F2=rand(p,n); F=[F1;F2]; [sys2,right,left]=ss2ss(sys,rand(n,n),F,G,1); // Sl1 equiv left*sysdiag(sys,eye(p,p))*right res=clean(ss2tf(sys2)-ss2tf(left*sysdiag(sys,eye(p,p))*right)) // when F2= 0; sys1 and sys2 are the same F2=0*rand(p,n);F=[F1;F2]; [sys2,right,left]=ss2ss(sys,rand(n,n),F,G,1); res=clean(ss2tf(sys2)-ss2tf(sys1))
<< ss2des | CACSD | ss2tf >> |