Mercurial > octave-nkf
changeset 5959:dcd376102ac1
[project @ 2006-08-23 19:09:30 by jwe]
author | jwe |
---|---|
date | Wed, 23 Aug 2006 19:09:31 +0000 |
parents | 85c7dc4afe6b |
children | 5c2747f40b56 |
files | scripts/ChangeLog scripts/control/system/tf2zp.m |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Wed Aug 23 18:35:39 2006 +0000 +++ b/scripts/ChangeLog Wed Aug 23 19:09:31 2006 +0000 @@ -1,3 +1,7 @@ +2006-08-23 Quentin Spencer <qspencer@ieee.org> + + * control/system/tf2zp.m: Simplify gain calculation. + 2006-08-23 John W. Eaton <jwe@octave.org> * plot/__plt__.m: Insert using clauses for all plots.
--- a/scripts/control/system/tf2zp.m Wed Aug 23 18:35:39 2006 +0000 +++ b/scripts/control/system/tf2zp.m Wed Aug 23 19:09:31 2006 +0000 @@ -43,10 +43,9 @@ zer = []; endif else - error ("Incorrect number of input arguments"); + print_usage (); endif - [a, b, c, d] = tf2ss (num, den); - [dum, k] = tzero (a, b, c, d); + k = num(1) / den(1); endfunction