|
From: | Doug Stewart |
Subject: | Re: Binary decoding function problem |
Date: | Wed, 17 Jul 2013 05:54:24 -0400 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |