|
-
Aug 12th, 2007, 10:49 PM
#1
Thread Starter
Member
Walsh code
please could someone help me in creating a recursive functn. for generating walsh codes I cant get the reursion part of it (given input n)
DIPLOMA HOLDER IN COMPUTER TECHNOLOGY 
-
Aug 13th, 2007, 10:30 AM
#2
Re: Walsh code
Why don't you show us what you have so far?
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
Aug 13th, 2007, 10:39 PM
#3
Thread Starter
Member
Re: Walsh code
void walsh(int n)
{
int i,j;
int cn[2][2]={1,0,0,1};
if(n<0)
exit(0);
else
{
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
printf("%d\t",cn[i][j]);
printf("\n");
}
walsh((n-1));
}
}
I just cant get the recursion part right.
DIPLOMA HOLDER IN COMPUTER TECHNOLOGY 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|