summaryrefslogtreecommitdiff
path: root/macros/stmcb.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/stmcb.sci')
-rw-r--r--macros/stmcb.sci7
1 files changed, 2 insertions, 5 deletions
diff --git a/macros/stmcb.sci b/macros/stmcb.sci
index 97bdea8..e93817a 100644
--- a/macros/stmcb.sci
+++ b/macros/stmcb.sci
@@ -1,5 +1,6 @@
-//Compute linear model using Steiglitz-McBride iteration
+function [b,a] = stmcb( x, u_in, q, p, niter, a_in )
+//Compute linear model using Steiglitz-McBride iteration
//calling syntax
//[b,a] = stmcb(h,nb,na)
//[b,a] = stmcb(y,x,nb,na)
@@ -7,7 +8,6 @@
//[b,a] = stmcb(y,x,nb,na,niter)
//[b,a] = stmcb(h,nb,na,niter,ai)
//[b,a] = stmcb(y,x,nb,na,niter,ai)
-
//Parameters :
//b,a : coefficients of the system function,nb is number of zeros and na is number of poles
//h:impulse response of the system
@@ -15,7 +15,6 @@
//niter: no of iterations
//ai:initial estimate of the denominator coefficients
//Accepts only real i/ps , imaginary i/ps are not accepted due to limitations of the 'filter' function in Scilab
-
//Example
//h = fscanfMat("macros/stmcb_h_data.txt");
//stmcb(h,4,4)
@@ -26,8 +25,6 @@
-function [b,a] = stmcb( x, u_in, q, p, niter, a_in )
-
narginchk(3, 6, argn(2));
//modify stmcb to handle exceptions when i/p is char
if(type(x)==10 | type(u_in)==10) then