Code covered by the BSD License  

Highlights from
1D Walsh Transform

4.0

4.0 | 1 rating Rate this file 8 Downloads (last 30 days) File Size: 2.22 KB File ID: #20500

1D Walsh Transform

by Andre

 

27 Jun 2008 (Updated 30 Jun 2008)

Function to generate a Walsh-Matrix one can use to do a 1D Walsh Transform

| Watch this File

File Information
Description

This function generates a Walsh-Matrix which can be used to perform the 1D-Walsh transform on a vector:
Example:
>> walsh(4)*[1 2 3 4]'

The returned matrix is internally cached within the function (persistent) which implies that it is efficient to call the function in a loop as long as the arguments passed remain the same.

The transform is faster than other (loop-) implementations found here on the File Exchange since the loop induces a lot of overhead.

This file is actually just part of my 2D-Walsh-Transform file submission (ID 20312).

Type "help walsh" for help.

>> help walsh
 WALSH Hadamard matrix.
    WALSH(N) is a Walsh matrix of order N, that is,
    a matrix W with elements 1 or -1 such that W'*W = N*EYE(N).
    An N-by-N Walsh matrix with N > 2.
    This function handles only the cases where N is a power of 2.
    The function internally cashes the generated matrix so that
    it is efficient to call this function multiple times if the
    passed parameters remain the same among the calls.
 
    WALSH(N,CLASSNAME) produces a matrix of class CLASSNAME.
    CLASSNAME must be either 'single' or 'double' (the default).

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Faster 2D-Hadmard Tranform

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
08 Jul 2008 lakshmi lakshmi  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
transforms Andre 22 Oct 2008 10:07:42
walsh Andre 22 Oct 2008 10:07:42
transform Andre 22 Oct 2008 10:07:42
matrix Andre 22 Oct 2008 10:07:42
1d Andre 22 Oct 2008 10:07:42
1d Roy Antony Arnold 12 Mar 2010 01:04:14

Contact us at files@mathworks.com