summaryrefslogtreecommitdiff
path: root/macros/tf2zpk.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/tf2zpk.sci')
-rw-r--r--macros/tf2zpk.sci3
1 files changed, 1 insertions, 2 deletions
diff --git a/macros/tf2zpk.sci b/macros/tf2zpk.sci
index f919316..ac18350 100644
--- a/macros/tf2zpk.sci
+++ b/macros/tf2zpk.sci
@@ -1,3 +1,4 @@
+function [zero, pole, gain] = tf2zpk(num, den)
//tf2zpk Convert transfer function filter parameters to zero-pole-gain
//form
//Calling Syntax :
@@ -8,8 +9,6 @@
//k=gain of the tf
//b=vector containing the numerator coefficients of the transfer function in descending powers of s
//a=vector containing the denominator coefficients of the transfer function in descending powers of s
-
-function [zero, pole, gain] = tf2zpk(num, den)
if argn(2)< 2 | isempty(den) then
den = 1;