diff options
author | avinashlalotra | 2025-04-26 20:09:12 +0530 |
---|---|---|
committer | avinashlalotra | 2025-04-26 20:09:12 +0530 |
commit | ea7dcdba3b83696b97cc431ee050b58f9a0f3507 (patch) | |
tree | 49ea8ba898b88535c261546f4e3accbdf4c83bdf /macros/isstable.sci | |
parent | 725d9ee2ddb254f57a896bb47e0e727759eb5901 (diff) | |
download | FOSSEE-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/isstable.sci')
-rw-r--r-- | macros/isstable.sci | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/macros/isstable.sci b/macros/isstable.sci index 16cf5a2..f8d3a0a 100644 --- a/macros/isstable.sci +++ b/macros/isstable.sci @@ -1,37 +1,29 @@ +function isstab=isstable(varargin) //Checks for stability of Discrete time System function - //Description : A Discrete time system is stable if all poles of system function are inside unit circle - // Calling Syntax // flag=isstable(b,a); // flag=isstable(sos); - //It takes input b and a which are array vector of numerator and denumerator coefficients respectively also it takes second order section (sos) system function input.SOS is a Kx6 matrix,where the number of sections, K, must be greater than or equal to 2.Each row of SOS corresponds to the coefficients of a second order filter //It returns a logical flag = 1(true) if given system is stable and 0(false) otherwise - // Eample : 1 // flag = isstable([1 2],[1 -0.7 0.1]) - // Output: // flag = // // 1. - // Conclusion : as flag output is 1 system is stable - // Example : 2 // flag = isstable([1 2 0],[1 5 6]) - //Output : //unstable system // flag = // // 0. - // Conclusion : this system is unstable as flag output is 0 -function isstab=isstable(varargin) -[nargout,nargin]=argn(); + + [nargout,nargin]=argn(); if (nargin==2) then//(a,b) is the input a=varargin(1); b=varargin(2); |