+ Post New Thread
Results 1 to 11 of 11
  1. #1
    Member level 3
    Points: 384, Level: 4

    Join Date
    Jan 2013
    Posts
    55
    Helped
    1 / 1
    Points
    384
    Level
    4

    How to implement this in matlab?

    n=1011(binary) 11 in decimal and b= 3(decimal) and finally getting answer as 011(binary).the b LSB of n to produce the subexponential code of n.How to implement it in matlab?
    n=1011 b=3 z=1|011 ans=011.What will be the program for this in matlab .?

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 2
    Points: 970, Level: 7

    Join Date
    Sep 2013
    Location
    India
    Posts
    123
    Helped
    12 / 12
    Points
    970
    Level
    7

    Re: How to implement this in matlab?

    Quote Originally Posted by tojeena View Post
    n=1011(binary) 11 in decimal and b= 3(decimal) and finally getting answer as 011(binary).the b LSB of n to produce the subexponential code of n.How to implement it in matlab?
    n=1011 b=3 z=1|011 ans=011.What will be the program for this in matlab .?
    Hi tojeena, the solution for your problem is you should convert all the number you want to compute either to binary or to decimal and then add all the number finally convert the answer based on your requirements...

    to convert decimal to binary use dec2bin(input) and vice versa...

    Hope this may be helpful....



  3. #3
    Member level 3
    Points: 384, Level: 4

    Join Date
    Jan 2013
    Posts
    55
    Helped
    1 / 1
    Points
    384
    Level
    4

    Re: How to implement this in matlab?

    Thank you for your reply.Actually the input is wavelet transformed coefficients bit plane coded,into binary.



    •   AltAdvertisement

        
       

  4. #4
    Full Member level 2
    Points: 970, Level: 7

    Join Date
    Sep 2013
    Location
    India
    Posts
    123
    Helped
    12 / 12
    Points
    970
    Level
    7

    Re: How to implement this in matlab?

    Hi tojeena , you get the output as 011 may i know on what basis you have calculated it or there are any equation

    will you elaborate your problem in order to find the solution...



  5. #5
    Member level 3
    Points: 384, Level: 4

    Join Date
    Jan 2013
    Posts
    55
    Helped
    1 / 1
    Points
    384
    Level
    4

    Re: How to implement this in matlab?

    [its the coding for subexponential codes



    •   AltAdvertisement

        
       

  6. #6
    Full Member level 2
    Points: 970, Level: 7

    Join Date
    Sep 2013
    Location
    India
    Posts
    123
    Helped
    12 / 12
    Points
    970
    Level
    7

    Re: How to implement this in matlab?

    Hi tojeena,
    I need the logic or computation example or equation behind that subexponential, or else just send me the code that produce the output as 011...



  7. #7
    Member level 3
    Points: 384, Level: 4

    Join Date
    Jan 2013
    Posts
    55
    Helped
    1 / 1
    Points
    384
    Level
    4

    Re: How to implement this in matlab?

    The reference for the algorithm of subexponential encoding and decoding is from the link http://upcommons.upc.edu/pfc/bitstre...ial_Clotet.pdf page 24(encoding) and 32(decoding).

    Thank you..



  8. #8
    Full Member level 2
    Points: 970, Level: 7

    Join Date
    Sep 2013
    Location
    India
    Posts
    123
    Helped
    12 / 12
    Points
    970
    Level
    7

    Re: How to implement this in matlab?

    well i have referd the link reach you as soon as possible ....



    •   AltAdvertisement

        
       

  9. #9
    Member level 3
    Points: 384, Level: 4

    Join Date
    Jan 2013
    Posts
    55
    Helped
    1 / 1
    Points
    384
    Level
    4

    Re: How to implement this in matlab?

    Thank you so much.Expecting your reply.



  10. #10
    Full Member level 2
    Points: 970, Level: 7

    Join Date
    Sep 2013
    Location
    India
    Posts
    123
    Helped
    12 / 12
    Points
    970
    Level
    7

    Re: How to implement this in matlab?

    Quote Originally Posted by tojeena View Post
    The reference for the algorithm of subexponential encoding and decoding is from the link http://upcommons.upc.edu/pfc/bitstre...ial_Clotet.pdf page 24(encoding) and 32(decoding).

    Thank you..
    Hi tojeena,

    I have written a code on the idea of the reference paper, and it is give below,

    clear all;
    clc;
    h1 = input('enter the value of k= ', 's');
    h2= input('enter the value of n= ', 's');
    k = str2num(h1);
    n = str2num(h2);
    compute = power(2,k);
    display(compute);
    g=log2(n);
    if (n>compute)
    b=floor(g);
    u=b-k+1;
    end
    display(b);
    display(u);

    I have just initialize the code for you
    on this basis of above code you develop further on your own idea...

    All the best in advance...

    Hope It may helpful to you...


    1 members found this post helpful.

  11. #11
    Member level 3
    Points: 384, Level: 4

    Join Date
    Jan 2013
    Posts
    55
    Helped
    1 / 1
    Points
    384
    Level
    4

    Re: How to implement this in matlab?

    Thank you so much..I will check this.



--[[ ]]--