summaryrefslogtreecommitdiff
path: root/macros/polyscale.sci
diff options
context:
space:
mode:
authoravinashlalotra2025-04-26 20:09:12 +0530
committeravinashlalotra2025-04-26 20:09:12 +0530
commitea7dcdba3b83696b97cc431ee050b58f9a0f3507 (patch)
tree49ea8ba898b88535c261546f4e3accbdf4c83bdf /macros/polyscale.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/polyscale.sci')
-rw-r--r--macros/polyscale.sci9
1 files changed, 3 insertions, 6 deletions
diff --git a/macros/polyscale.sci b/macros/polyscale.sci
index 019c08a..b2c6c5f 100644
--- a/macros/polyscale.sci
+++ b/macros/polyscale.sci
@@ -1,3 +1,5 @@
+
+function b = polyscale(a,alpha)
// polyscale Scaling roots of a polynomial
// scales the roots of a polynomial in the z plane
//Syntax:
@@ -12,21 +14,16 @@
//p=[1 0 0 0 0 0 0 -1] and changing the scaling factor,
//b=polyscale(p,0.85)
//EXPECTED OUTPUT:b=1. 0. 0. 0. 0. 0. 0. - 0.3205771
-
-
//p=[1 0 0 0 0 0 0 -1] and changing the scaling factor,
//b=polyscale(p,0.95)
//EXPECTED OUTPUT:b=1. 0. 0. 0. 0. 0. 0. - 0.6983373
//
-
//p=[1 0 0 0 0 0 0 -1] and changing the scaling factor,
//b=polyscale(p,1)
//EXPECTED OUTPUT:b=1. 0. 0. 0. 0. 0. -1
-
-
// Author
//Debdeep Dey
-function b = polyscale(a,alpha)
+
//errcheck1
if(min(size(a))>1) then
error('Input polynomial must be an array')