File: dsimul.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (32 lines) | stat: -rw-r--r-- 760 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
30
31
32

dscr(1)                        Scilab Function                        dscr(1)
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(20,1);
  x2=dsimul(sl,u);  //Step response

SEE ALSO
  syslin, flts, ltitr