From cdd55940b7a287810e423017c42e7c965815c468 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 25 Jul 2018 17:32:17 +0530 Subject: code changes by Shashikiran Yadalam during FOSSEE Fellowship 2018 --- macros/sos2tf.sci | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'macros/sos2tf.sci') 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) -- cgit