~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/control/dsimul.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dscr             Scilab Group             Scilab Function              dscr
2
 
NAME
3
 
   dsimul -  state space discrete time simulation 
4
 
  
5
 
CALLING SEQUENCE
6
 
 y=dsimul(sl,u)
7
 
PARAMETERS
8
 
 sl         : syslin list describing a discrete time linear system
9
 
            
10
 
 u          : real matrix of appropriate dimension
11
 
            
12
 
 y          : output of sl
13
 
            
14
 
DESCRIPTION
15
 
   Utility function.  If [A,B,C,D]=abcd(sl) and x0=sl('X0'), dsimul returns
16
 
  y=C*ltitr(A,B,u,x0)+D*u i.e. the time response of sl to the input u. sl
17
 
  is assumed to be in state space form (syslin list).
18
 
  
19
 
EXAMPLE
20
 
 z=poly(0,'z');
21
 
 h=(1-2*z)/(z^2-0.2*z+1);
22
 
 sl=tf2ss(h);
23
 
 u=zeros(1,20);u(1)=1;
24
 
 x1=dsimul(sl,u)   //Impulse response
25
 
 u=ones(1,20);
26
 
 x2=dsimul(sl,u);  //Step response
27
 
SEE ALSO
28
 
   syslin, flts, ltitr  
29