1
## Copyright (C) 1998, 2000, 2002, 2003, 2004, 2005, 2007
2
## Auburn University. All rights reserved.
5
## This program is free software; you can redistribute it and/or modify it
6
## under the terms of the GNU General Public License as published by
7
## the Free Software Foundation; either version 3 of the License, or (at
8
## your option) any later version.
10
## This program is distributed in the hope that it will be useful, but
11
## WITHOUT ANY WARRANTY; without even the implied warranty of
12
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
## General Public License for more details.
15
## You should have received a copy of the GNU General Public License
16
## along with this program; see the file COPYING. If not, see
17
## <http://www.gnu.org/licenses/>.
20
## @deftypefn {Function File} {} sysgettype (@var{sys})
21
## return the initial system type of the system
26
## System data structure.
32
## String indicating how the structure was initially
33
## constructed. Values: @code{"ss"}, @code{"zp"}, or @code{"tf"}.
36
## @acronym{FIR} initialized systems return @code{systype="tf"}.
39
function systype = sysgettype (sys)
46
error ("sysgettype: input sys is not a structure");
49
typestr = {"tf", "zp", "ss"};
50
systype = typestr{sys.sys(1) + 1};