diff options
author | Sunil Shetye | 2018-07-25 17:32:17 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-26 23:50:17 +0530 |
commit | cdd55940b7a287810e423017c42e7c965815c468 (patch) | |
tree | d802563d2d507039354a3cf48e75465b7e7a8d76 /macros/sos2tf.sci | |
parent | 1251f70aa3442736ce6fd9c4fb7fbce412af5a52 (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-cdd55940b7a287810e423017c42e7c965815c468.tar.gz FOSSEE-Signal-Processing-Toolbox-cdd55940b7a287810e423017c42e7c965815c468.tar.bz2 FOSSEE-Signal-Processing-Toolbox-cdd55940b7a287810e423017c42e7c965815c468.zip |
code changes by Shashikiran Yadalam during FOSSEE Fellowship 2018
Diffstat (limited to 'macros/sos2tf.sci')
-rw-r--r-- | macros/sos2tf.sci | 7 |
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) |