+ Post New Thread
Results 1 to 11 of 11

7th August 2013, 16:16 #1
 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=1011 ans=011.What will be the program for this in matlab .?

Advertisement

5th September 2013, 10:41 #2
 Join Date
 Sep 2013
 Location
 India
 Posts
 123
 Helped
 12 / 12
 Points
 970
 Level
 7
Re: How to implement 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....

5th September 2013, 11:23 #3
 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.

Advertisement

5th September 2013, 11:32 #4
 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...

5th September 2013, 11:55 #5
 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

Advertisement

5th September 2013, 12:29 #6
 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...

5th September 2013, 13:07 #7
 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..

5th September 2013, 13:31 #8
 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 ....

Advertisement

5th September 2013, 14:12 #9
 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.

5th September 2013, 14:59 #10
 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 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=bk+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.

5th September 2013, 15:20 #11
 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.
+ Post New Thread
Please login