- Manuel Scilab
- Fonctions Elémentaires
- Mathématiques discrètes
- Virgule flottante
- Représentation d'entier
- Trigonométrie
- abs
- amell
- and
- &
- cumprod
- cumsum
- delip
- diag
- exp
- eye
- gsort
- imag
- intersect
- inttrap
- isdef
- isreal
- kron
- lex_sort
- linspace
- log
- log10
- log2
- logm
- logspace
- lstsize
- max
- meshgrid
- min
- modulo
- norm
- ones
- or
- |
- pen2ea
- prod
- rand
- real
- resize_matrix
- sign
- signm
- size
- solve
- sqrt
- sqrtm
- squarewave
- sum
- syslin
- toeplitz
- trianfml
- tril
- trisolve
- triu
- union
- unique
- zeros
- binomial
- bitand
- bitor
- bloc2exp
- bloc2ss
- cat
- cell2mat
- cellstr
- char
- diff
- dsearch
- flipdim
- imult
- ind2sub
- isempty
- isequal
- isequalbitwise
- isvector
- log1p
- ndgrid
- ndims
- nextpow2
- permute
- pertrans
- setdiff
- ssrand
- sub2ind
- sysconv
- sysdiag
- trfmod
- typeof
- vectorfind
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
ssrand
random system generator
Calling Sequence
sl=ssrand(nout,nin,nstate) [sl,U]=ssrand(nout,nin,nstate,flag)
Arguments
- nout
integer (number of output)
- nin
integer (number of input)
- nstate
integer (dimension of state-space)
- flag
list made of one character string and one or several integers
- sl
list (
syslin
list)- U
square
(nstate x nstate)
nonsingular matrix
Description
sl=ssrand(nout,nin,nstate)
returns a random
strictly proper (D=0
) state-space system of size
[nout,nint]
represented by a syslin
list and with nstate
state variables.
[sl,U]=ssrand(nout,nin,nstate,flag)
returns a
test linear system with given properties specified by
flag
. flag
can be one of the
following:
flag=list('co',dim_cont_subs) flag=list('uo',dim_unobs_subs) flag=list('ncno',dim_cno,dim_ncno,dim_co,dim_nco) flag=list('st',dim_cont_subs,dim_stab_subs,dim_stab0) flag=list('dt',dim_inst_unob,dim_instb0,dim_unobs) flag=list('on',nr,ng,ng0,nv,rk) flag=list('ui',nw,nwu,nwui,nwuis,rk)
The complete description of the Sys
is given in
the code of the ssrand
function (in
SCI/modules/cacsd/macros/
). For example with
flag=list('co',dim_cont_subs)
a non-controllable system
is return and dim_cont_subs
is the dimension of the
controllable subspace of Sys
. The character strings
'co','uo','ncno','st','dt','on','ui'
stand for
"controllable", "unobservable", "non-controllable-non-observable",
"stabilizable","detectable","output-nulling","unknown-input".
Examples
//flag=list('st',dim_cont_subs,dim_stab_subs,dim_stab0) //dim_cont_subs<=dim_stab_subs<=dim_stab0 //pair (A,B) U-similar to: // [*,*,*,*; [*; // [0,s,*,*; [0; //A= [0,0,i,*; B=[0; // [0,0,0,u] [0] // // (A11,B1) controllable s=stable matrix i=neutral matrix u=unstable matrix [Sl,U]=ssrand(2,3,8,list('st',2,5,5)); w=ss2ss(Sl,inv(U)); //undo the random change of basis => form as above [n,nc,u,sl]=st_ility(Sl);n,nc
See Also
<< setdiff | Fonctions Elémentaires | sub2ind >> |