diff options
author | shamikam | 2017-11-07 15:59:48 +0530 |
---|---|---|
committer | shamikam | 2017-11-07 15:59:48 +0530 |
commit | c0c0582462720ed597b00e116506570577614e89 (patch) | |
tree | 31dedd23698e5357b19c810b7d7a8464100ef44a /macros/sosfilt.sci | |
download | FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.tar.gz FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.tar.bz2 FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.zip |
initial commit
Diffstat (limited to 'macros/sosfilt.sci')
-rw-r--r-- | macros/sosfilt.sci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/sosfilt.sci b/macros/sosfilt.sci new file mode 100644 index 0000000..cff4d58 --- /dev/null +++ b/macros/sosfilt.sci @@ -0,0 +1,20 @@ +function [y]=sosfilt(sos,x) + +// Second order section IIR filtering of x. +// Calling Sequence +// [y]=sosfilt(sos,x) +// Parameters +// sos: Real or complex valued Lx6 vector or matrix +// x: Real or complex valued vector or matrix +// Description +// This is an Octave function +// Second order section digital filter sos is applied to the input vector and the output vector obtained is of the same length. +// Examples +// 1. sosfilt([1 2 3 4 5 6],[-1 10i;1 2]) +// ans =[ -0.25000 0.00000; 0.06250 0.50000] +// 2. sosfilt([32 28 84 47 2 29],-1) +// ans = -0.68085 + +funcprot(0); +y=callOctave("sosfilt",sos,x) +endfunction |