Matlab Code for Generating Walsh Code for IS95 or CDMA one

Status
Not open for further replies.

suppsh

Newbie level 1
Joined
Mar 16, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
walsh code matlab

Hi
I urgently need matlab source code for the generation fo walsh codes for IS 95 or cdma one. Any one can hlep me in this regard i shall be very thankful to him/her.
So please if any one have do post it on the forum or send me at my email address saqib.sam@gmail.com.

Thanking you all in advance.
Regards,
 

walsh code in matlab

% Length: 64/128
function Code = Walsh(Length, Index)

W = [1];

for k=1:floor(log2(Length))
W = [W W; W -W];
end

Code = W(Index+1, : );
 

Re: walsh code in matlab

qagt said:
% Length: 64/128
function Code = Walsh(Length, Index)

W = [1];

for k=1:floor(log2(Length))
W = [W W; W -W];
end

Code = W(Index+1, : );

could you please put a remark for each step?

also it is better if you upload the theory itself for the walsh code.

thanks
 

I think its quite simple, the procedure is exactly same that you would follow to generate Walsh code on paper i.e. start with a seed, keep the same when expanding towards row and column but invert the sign when you move diagonally

like this

W0 = 1;
W1 = [W0 W0;W0 -W0];
W2 = [W1 W1;W1 -W1];
.
.
.

to optimize this put a loop around it


Hope it helps
 

Ohhhhhh

very good, understand it,

please see my post

can you help me, i think you answered me previously bu i lost it.

thanks
 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…