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/firtype.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/firtype.sci')
-rw-r--r-- | macros/firtype.sci | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/macros/firtype.sci b/macros/firtype.sci index 4a17e4e..9d5ab8d 100644 --- a/macros/firtype.sci +++ b/macros/firtype.sci @@ -1,26 +1,21 @@ -//Author: Parthasarathi Panda -//parthasarathipanda314@gmail.com function typ=firtype(b) //This function identifies Type of linear phase FIR filter - //Calling Sequence //t = firtype(b) - //Parameters //t: type of an FIR filter //b: Filter coefficients - //Description //t = firtype(b) determines the type, t, of an FIR filter with coefficients b. t can be 1, 2, 3, or 4. The filter must be real and have linear phase. - //Examples //b=[9.2762e-05 9.5482e-02 4.0443e-01 4.0443e-01 9.5482e-02 9.2762e-05] //firtype(b) //Output : 2 - //b=[-1 -2 0 2 1] //firtype(b) //Output : 3 +//Author: Parthasarathi Panda +//parthasarathipanda314@gmail.com if (type(b)~=1) then error('check input type'); |