summaryrefslogtreecommitdiff
path: root/macros/stmcb.sci
diff options
context:
space:
mode:
authoravinashlalotra2025-04-26 20:09:12 +0530
committeravinashlalotra2025-04-26 20:09:12 +0530
commitea7dcdba3b83696b97cc431ee050b58f9a0f3507 (patch)
tree49ea8ba898b88535c261546f4e3accbdf4c83bdf /macros/stmcb.sci
parent725d9ee2ddb254f57a896bb47e0e727759eb5901 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.tar.gz
FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.tar.bz2
FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.zip
formated source documentation pattern for generating docs
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