3430
|
1 ## Copyright (C) 1996, 1998 Auburn University. All rights reserved. |
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by the |
|
7 ## Free Software Foundation; either version 2, or (at your option) any |
|
8 ## later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 ## for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, write to the Free |
|
17 ## Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. |
|
18 |
|
19 ## -*- texinfo -*- |
3500
|
20 ## @deftypefn {Function File} {} zp2sys (@var{zer}, @var{pol}, @var{k}, @var{tsam}, @var{inname}, @var{outname}) |
3430
|
21 ## Create system data structure from zero-pole data. |
|
22 ## |
|
23 ## @strong{Inputs} |
|
24 ## @table @var |
|
25 ## @item zer |
|
26 ## vector of system zeros |
|
27 ## @item pol |
|
28 ## vector of system poles |
|
29 ## @item k |
|
30 ## scalar leading coefficient |
|
31 ## @item tsam |
|
32 ## sampling period. default: 0 (continuous system) |
|
33 ## @item inname |
|
34 ## @itemx outname |
|
35 ## input/output signal names (lists of strings) |
|
36 ## @end table |
|
37 ## |
|
38 ## @strong{Outputs} |
|
39 ## sys: system data structure |
|
40 ## |
|
41 ## @strong{Example} |
|
42 ## @example |
|
43 ## octave:1> sys=zp2sys([1 -1],[-2 -2 0],1); |
|
44 ## octave:2> sysout(sys) |
|
45 ## Input(s) |
|
46 ## 1: u_1 |
|
47 ## Output(s): |
|
48 ## 1: y_1 |
|
49 ## zero-pole form: |
|
50 ## 1 (s - 1) (s + 1) |
|
51 ## ----------------- |
|
52 ## s (s + 2) (s + 2) |
|
53 ## @end example |
|
54 ## @end deftypefn |
|
55 |
|
56 ## Modified by John Ingram July 20, 1996 |
|
57 |
4771
|
58 function outsys = zp2sys ( varargin ) |
3430
|
59 |
4771
|
60 warning("zp2sys is deprecated. Use zp() instead."); |
|
61 outsys = zp(varargin{:}); |
3430
|
62 |
|
63 endfunction |