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