help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary decoding function problem


From: Doug Stewart
Subject: Re: Binary decoding function problem
Date: Wed, 17 Jul 2013 05:54:24 -0400




On Wed, Jul 17, 2013 at 5:12 AM, bctn <address@hidden> wrote:
Hi Kai,

Of course.
Think that you have 10x20 random binary matrix, means that you have 10
chromosomes with 20 binary numbers. The code will be like that;
/x=randint(10,20)/
I want to decode it into integer number.

bin2dec can be used only for this usage;
/bin2dec("1 1 1 0 1 0 ..")/

This restricts my representation. E.g. i want to see and examine   /x(2,:)/
or all the chromosomes as a real value.

Best regards,



--
View this message in context: http://octave.1599824.n4.nabble.com/Binary-decoding-function-problem-tp4655686p4655752.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave

Is each item in your matrix a string or an integer???

--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

[Prev in Thread] Current Thread [Next in Thread]