Mercurial > hg > octave-thorsten
comparison scripts/control/dcgain.m @ 3381:69b167451491
[project @ 1999-12-15 20:48:10 by jwe]
author | jwe |
---|---|
date | Wed, 15 Dec 1999 20:48:45 +0000 |
parents | 8dd4718801fd |
children | 10f21f7ccc7f |
comparison
equal
deleted
inserted
replaced
3380:f5edd74bdc6c | 3381:69b167451491 |
---|---|
1 # Copyright (C) 1993, 1994, 1995 John W. Eaton | 1 ## Copyright (C) 1993, 1994, 1995 John W. Eaton |
2 # | 2 ## |
3 # This file is part of Octave. | 3 ## This file is part of Octave. |
4 # | 4 ## |
5 # Octave is free software; you can redistribute it and/or modify it | 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 | 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 | 7 ## Free Software Foundation; either version 2, or (at your option) any |
8 # later version. | 8 ## later version. |
9 # | 9 ## |
10 # Octave is distributed in the hope that it will be useful, but WITHOUT | 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 | 11 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | 12 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
13 # for more details. | 13 ## for more details. |
14 # | 14 ## |
15 # You should have received a copy of the GNU General Public License | 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 | 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. | 17 ## Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. |
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File } {@var{gm} =} dcgain(@var{sys}@{, tol@}) | 20 ## @deftypefn {Function File } {@var{gm} =} dcgain(@var{sys}@{, tol@}) |
21 ## Returns dc-gain matrix. If dc-gain is infinite | 21 ## Returns dc-gain matrix. If dc-gain is infinite |
22 ## an empty matrix is returned. | 22 ## an empty matrix is returned. |
23 ## The argument @var{tol} is an optional tolerance for the condition | 23 ## The argument @var{tol} is an optional tolerance for the condition |
24 ## number of @var{A}-Matrix in @var{sys} (default @var{tol} = 1.0e-10) | 24 ## number of @var{A}-Matrix in @var{sys} (default @var{tol} = 1.0e-10) |
25 ## @end deftypefn | 25 ## @end deftypefn |
26 | 26 |
27 function gm = dcgain(sys, tol) | 27 function gm = dcgain(sys, tol) |
28 # Written by Kai P Mueller (mueller@ifr.ing.tu-bs.de) October 1, 1997 | 28 ## Written by Kai P Mueller (mueller@ifr.ing.tu-bs.de) October 1, 1997 |
29 | 29 |
30 if((nargin < 1) || (nargin > 2) || (nargout > 1)) | 30 if((nargin < 1) || (nargin > 2) || (nargout > 1)) |
31 usage("[gm, ok] = dcgain(sys[, tol])"); | 31 usage("[gm, ok] = dcgain(sys[, tol])"); |
32 endif | 32 endif |
33 if(!is_struct(sys)) | 33 if(!is_struct(sys)) |