File: imrep2ss.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 (35 lines) | stat: -rw-r--r-- 1,076 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
33
34
35
imrep2ss          Scilab Group          Scilab Function            imrep2ss
NAME
   imrep2ss - state-space realization of an impulse response 
  
CALLING SEQUENCE
 [sl]=imrep2ss(v [,deg])
PARAMETERS
 v          : vector coefficients of impulse response, v(:,k) is the kth
            sample
            
 deg        : integer (order required)
            
 sl         : syslin list
            
DESCRIPTION
   Impulse response to linear system conversion (one input). v must have an
  even number of columns.
  
EXAMPLE
 s=poly(0,'s');
 H=[1/(s+0.5);2/(s-0.4)]   //strictly proper
 np=20;w=ldiv(H('num'),H('den'),np);
 rep=[w(1:np)';w(np+1:2*np)'];   //The impulse response
 H1=ss2tf(imrep2ss(rep))
 z=poly(0,'z');
 H=(2*z^2-3.4*z+1.5)/(z^2-1.6*z+0.8)     //Proper transfer function
 u=zeros(1,20);u(1)=1;
 rep=rtitr(H('num'),H('den'),u);   //Impulse rep. 
 //   <=> rep=ldiv(H('num'),H('den'),20)
 w=z*imrep2ss(rep)   //Realization with shifted impulse response 
 // i.e strictly proper to proper
 H2=ss2tf(w);
SEE ALSO
   frep2tf, arl2, time_id, armax, markp2ss, ldiv