Code covered by the BSD License  

Highlights from
Walsh Functions

3.0

3.0 | 2 ratings Rate this file 6 Downloads (last 30 days) File Size: 1.34 KB File ID: #29590
image thumbnail

Walsh Functions

by Diego Guarin

 

01 Dec 2010 (Updated 03 Mar 2011)

This function computes the Walsh Function of order n and length m

| Watch this File

File Information
Description

The function waslh_func.m computes the Walsh Function of order n and length m

Example:
[W,t]=walsh_func(1000,5);

Results:
W is the Walsh function of order 5 and lenght 1000
t is equal to linspace(-0.5,0.5,1000);

I follow the description of Walsh Functions given in
Germán Castellanos Domíngez and Álvaro Ángel Orozo Gutiérrez.
Representación de señales y sistemas. Universidad Tecnológica de Pereira, Pereira, Colombia. 2007.

I make use of dec2gc.m of Arjun Srinivasan Rangamani

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
24 Feb 2011 Vitomir Struc

The function contains a few errors. First of all, you do not return the first Walsh function, which is constant and equal to 1. This means that all Walsh functions returned by your function (if it was correctly implemented) would be of one order higher than specified by the parameter n. Next, your Matlab function returns the wrong order of the Walsh functions - have a look at any of the on-line sources. And it seems to me that all returned functions are multiplied by -1.

03 Mar 2011 Diego Guarin

Thank you for your comments, I modify the file, so you can get the n=0 Walsh function. As I mentioned in the description, the function that I implemented is the one described in the book of Castellanos and Orozco, if you feel that the sign is wrong, you can add a line after the line 22, W=-W.

22 May 2011 huang huizhong  
Please login to add a comment or rating.
Updates
03 Mar 2011

I modify the file so you can compute the order zero (n=0) Walsh function.

Tag Activity for this File
Tag Applied By Date/Time
walsh functions Diego Guarin 01 Dec 2010 15:56:15
gray code Diego Guarin 01 Dec 2010 15:56:16
signal processing Diego Guarin 01 Dec 2010 15:56:16
dec2gc Diego Guarin 01 Dec 2010 15:56:16
walsh functions Mohammed 02 Aug 2011 08:53:59

Contact us at files@mathworks.com