Mercurial > hg > octave-avbm
comparison scripts/control/system/zp2ss.m @ 5016:bdbee5282954
[project @ 2004-09-22 02:50:35 by jwe]
author | jwe |
---|---|
date | Wed, 22 Sep 2004 02:50:36 +0000 |
parents | b8105302cfe8 |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
5015:6d481b6e349e | 5016:bdbee5282954 |
---|---|
17 ## Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. | 17 ## Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. |
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {[@var{a}, @var{b}, @var{c}, @var{d}] =} zp2ss (@var{zer}, @var{pol}, @var{k}) | 20 ## @deftypefn {Function File} {[@var{a}, @var{b}, @var{c}, @var{d}] =} zp2ss (@var{zer}, @var{pol}, @var{k}) |
21 ## Conversion from zero / pole to state space. | 21 ## Conversion from zero / pole to state space. |
22 ## | |
22 ## @strong{Inputs} | 23 ## @strong{Inputs} |
23 ## @table @var | 24 ## @table @var |
24 ## @item zer | 25 ## @item zer |
25 ## @itemx pol | 26 ## @itemx pol |
26 ## vectors of (possibly) complex poles and zeros of a transfer | 27 ## Vectors of (possibly) complex poles and zeros of a transfer |
27 ## function. Complex values must come in conjugate pairs | 28 ## function. Complex values must come in conjugate pairs |
28 ## (i.e., x+jy in zer means that x-jy is also in zer) | 29 ## (i.e., @math{x+jy} in @var{zer} means that @math{x-jy} is also in @var{zer}). |
30 ## The number of zeros must not exceed the number of poles. | |
29 ## @item k | 31 ## @item k |
30 ## real scalar (leading coefficient) | 32 ## Real scalar (leading coefficient). |
31 ## @end table | 33 ## @end table |
34 ## | |
32 ## @strong{Outputs} | 35 ## @strong{Outputs} |
33 ## @var{a}, @var{b}, @var{c}, @var{d} | 36 ## @table @var |
34 ## The state space system | 37 ## @item @var{a} |
38 ## @itemx @var{b} | |
39 ## @itemx @var{c} | |
40 ## @itemx @var{d} | |
41 ## The state space system, in the form: | |
42 ## @iftex | |
43 ## @tex | |
44 ## $$ \dot x = Ax + Bu $$ | |
45 ## $$ y = Cx + Du $$ | |
46 ## @end tex | |
47 ## @end iftex | |
48 ## @ifinfo | |
35 ## @example | 49 ## @example |
36 ## . | 50 ## . |
37 ## x = Ax + Bu | 51 ## x = Ax + Bu |
38 ## y = Cx + Du | 52 ## y = Cx + Du |
39 ## @end example | 53 ## @end example |
40 ## is obtained from a vector of zeros and a vector of poles via the | 54 ## @end ifinfo |
41 ## function call @code{[a,b,c,d] = zp2ss(zer,pol,k)}. | 55 ## @end table |
42 ## The vectors @samp{zer} and | |
43 ## @samp{pol} may either be row or column vectors. Each zero and pole that | |
44 ## has an imaginary part must have a conjugate in the list. | |
45 ## The number of zeros must not exceed the number of poles. | |
46 ## @samp{k} is @code{zp}-form leading coefficient. | |
47 ## @end deftypefn | 56 ## @end deftypefn |
48 | 57 |
49 ## Author: David Clem | 58 ## Author: David Clem |
50 ## Created: August 15, 1994 | 59 ## Created: August 15, 1994 |
51 | 60 |