comparison scripts/control/system/tf2sys.m @ 5016:bdbee5282954

[project @ 2004-09-22 02:50:35 by jwe]
author jwe
date Wed, 22 Sep 2004 02:50:36 +0000
parents b8105302cfe8
children 4c8a2e4e0717
comparison
equal deleted inserted replaced
5015:6d481b6e349e 5016:bdbee5282954
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} {} tf2sys (@var{num}, @var{den}, @var{tsam}, @var{inname}, @var{outname}) 20 ## @deftypefn {Function File} {} tf2sys (@var{num}, @var{den}, @var{tsam}, @var{inname}, @var{outname})
21 ## build system data structure from transfer function format data 21 ## Build system data structure from transfer function format data.
22 ## 22 ##
23 ## @strong{Inputs} 23 ## @strong{Inputs}
24 ## @table @var 24 ## @table @var
25 ## @item num 25 ## @item num
26 ## @itemx den 26 ## @itemx den
27 ## coefficients of numerator/denominator polynomials 27 ## Coefficients of numerator/denominator polynomials.
28 ## @item tsam 28 ## @item tsam
29 ## sampling interval. default: 0 (continuous time) 29 ## Sampling interval; default: 0 (continuous time).
30 ## @item inname 30 ## @item inname
31 ## @itemx outname 31 ## @itemx outname
32 ## input/output signal names; may be a string or cell array with a single string 32 ## Input/output signal names; may be a string or cell array with a single string
33 ## entry. 33 ## entry.
34 ## @end table 34 ## @end table
35 ## 35 ##
36 ## @strong{Outputs} 36 ## @strong{Output}
37 ## @var{sys} = system data structure 37 ## @table @var
38 ## @item sys
39 ## System data structure.
40 ## @end table
38 ## 41 ##
39 ## @strong{Example} 42 ## @strong{Example}
40 ## @example 43 ## @example
41 ## octave:1> sys=tf2sys([2 1],[1 2 1],0.1); 44 ## octave:1> sys=tf2sys([2 1],[1 2 1],0.1);
42 ## octave:2> sysout(sys) 45 ## octave:2> sysout(sys)