File: dsimul.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (29 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dscr             Scilab Group             Scilab Function              dscr
NAME
   dsimul -  state space discrete time simulation 
  
CALLING SEQUENCE
 y=dsimul(sl,u)
PARAMETERS
 sl         : syslin list describing a discrete time linear system
            
 u          : real matrix of appropriate dimension
            
 y          : output of sl
            
DESCRIPTION
   Utility function.  If [A,B,C,D]=abcd(sl) and x0=sl('X0'), dsimul returns
  y=C*ltitr(A,B,u,x0)+D*u i.e. the time response of sl to the input u. sl
  is assumed to be in state space form (syslin list).
  
EXAMPLE
 z=poly(0,'z');
 h=(1-2*z)/(z^2-0.2*z+1);
 sl=tf2ss(h);
 u=zeros(1,20);u(1)=1;
 x1=dsimul(sl,u)   //Impulse response
 u=ones(1,20);
 x2=dsimul(sl,u);  //Step response
SEE ALSO
   syslin, flts, ltitr