summaryrefslogtreecommitdiff
path: root/macros/sos2tf.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/sos2tf.sci')
-rw-r--r--macros/sos2tf.sci7
1 files changed, 4 insertions, 3 deletions
diff --git a/macros/sos2tf.sci b/macros/sos2tf.sci
index 0ee0d3e..d38a4f7 100644
--- a/macros/sos2tf.sci
+++ b/macros/sos2tf.sci
@@ -13,11 +13,12 @@ function [B,A] = sos2tf(sos, g)
//The input is the sos matrix and the second parameter is the overall gain, default value of which is 1.
//The output is a vector.
//Examples
-//[a,b]=sos2tf([1,2,3,4,5,6])
+//sos = [1 1 1 1 0 -1; -2 3 1 1 10 1];
+////[b,a] = sos2tf(sos)
//a =
-// 1 2 3
+// -2 1 2 4 1
//b =
-// 4 5 6
+// 1 10 0 -10 -1
funcprot(0);
rhs = argn(2)
if(rhs<1 | rhs>2)