summaryrefslogtreecommitdiff
path: root/macros/fwht.sci
diff options
context:
space:
mode:
authorbgtushar2017-11-27 11:14:24 +0530
committerGitHub2017-11-27 11:14:24 +0530
commit25a88252ee49c73acb18232f6e916d7742a1af80 (patch)
tree9161ea9a7940e36a21f0855a7805e24f7b002d8a /macros/fwht.sci
parente9ab4b0b52db51be30f4ac3d07673c20b48da13c (diff)
parentff8b1285a880cc28c68d8b224b20b8ccff8e5422 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.tar.gz
FOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.tar.bz2
FOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.zip
Merge pull request #5 from abhinavdronamraju/master
Help files created and Updated Readme.md
Diffstat (limited to 'macros/fwht.sci')
-rw-r--r--macros/fwht.sci24
1 files changed, 24 insertions, 0 deletions
diff --git a/macros/fwht.sci b/macros/fwht.sci
index 280bbee..e0a15ff 100644
--- a/macros/fwht.sci
+++ b/macros/fwht.sci
@@ -1,4 +1,28 @@
function y = fwht(x, varargin)
+//Compute the Walsh-Hadamard transform of x using the Fast Walsh-Hadamard Transform (FWHT) algorithm
+//Calling Sequence
+//fwht (x)
+//fwht (x, n)
+//fwht (x, n, order)
+//Parameters
+//x: real or complex valued scalar or vector
+//n: x is truncated or extended to have length n
+//order: Specification of order in which coefficients should be arranged
+//Description
+//Compute the Walsh-Hadamard transform of x using the Fast Walsh-Hadamard Transform (FWHT) algorithm. If the input is a matrix, the FWHT is calculated along the columns of x.
+//
+//The number of elements of x must be a power of 2; if not, the input will be extended and filled with zeros. If a second argument is given, the input is truncated or extended to have length n.
+//
+//The third argument specifies the order in which the returned Walsh-Hadamard transform coefficients should be arranged. The order may be any of the following strings:
+//
+//"sequency"
+//The coefficients are returned in sequency order. This is the default if order is not given.
+//
+//"hadamard"
+//The coefficients are returned in Hadamard order.
+//
+//"dyadic"
+//The coefficients are returned in Gray code order.
funcprot(0);
rhs= argn(2);