Results 1 to 3 of 3

Thread: Walsh code

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    44

    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

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    44

    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
  •  



Click Here to Expand Forum to Full Width