File: imrep2ss.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 (38 lines) | stat: -rw-r--r-- 1,047 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
36
37
38

imrep2ss(4)                    Scilab Function                    imrep2ss(4)
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 sam-
            ple

  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