1 ## Copyright (C) 1996, 1998, 2000, 2003, 2004, 2005, 2006, 2007 Auburn University
2 ## Copyright (C) 2012 Lukas F. Reichlin <lukas.reichlin@gmail.com>
4 ## This program is free software; you can redistribute it and/or modify it under
5 ## the terms of the GNU General Public License as published by the Free Software
6 ## Foundation; either version 3 of the License, or (at your option) any later
9 ## This program is distributed in the hope that it will be useful, but WITHOUT
10 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 ## You should have received a copy of the GNU General Public License along with
15 ## this program; if not, see <http://www.gnu.org/licenses/>.
18 ## @deftypefn {Function File} {[@var{zer}, @var{pol}, @var{k}] =} tf2zp (@var{num}, @var{den})
19 ## Converts transfer functions to poles-and-zero representations.
21 ## Returns the zeros and poles of the system defined
22 ## by @var{num}/@var{den}.
23 ## @var{k} is a gain associated with the system zeros.
26 ## Author: A. S. Hodel <a.s.hodel@eng.auburn.edu>
28 function [z, p, k] = tf2zp (varargin)
34 [z, p, k] = zpkdata (tf (varargin{:}), "vector");