summaryrefslogtreecommitdiff
path: root/macros/ismaxphase.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ismaxphase.sci')
-rw-r--r--macros/ismaxphase.sci8
1 files changed, 2 insertions, 6 deletions
diff --git a/macros/ismaxphase.sci b/macros/ismaxphase.sci
index 1fda072..0912c73 100644
--- a/macros/ismaxphase.sci
+++ b/macros/ismaxphase.sci
@@ -1,25 +1,21 @@
+function ismax=ismaxphase(varargin)
//ismaxphase Determine whether filter is maximum phase or not
-
// Description : It determines whether the given system function is maximum phase system or not . Maximum phase system means all zeros of transfer function will be outside the unit circle in z-plane also poles mustbe within unit circle for stability and causality
-
//Syntax
//flag = ismaxphase(b,a)
//flag = ismaxphase(sos)
//flag = ismaxphase(...,tol)
// b and a are the vectors containing numerator and denumerator coefficients respectively
//tol, tolerance is used to determine when two numbers are close enough to be considered equal.
-
//Example : of maximum phase system
//flag = ismaxphase([1 -5 6],1)
-
//Output
// flag =
//
// 1.
-
//Author: Parthasarathi Panda
//parthasarathipanda314@gmail.com
-function ismax=ismaxphase(varargin)
+
[nargout,nargin]=argn();
if (nargin==2) then
a=varargin(1);