[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binary decoding function problem
From: |
bctn |
Subject: |
Re: Binary decoding function problem |
Date: |
Wed, 17 Jul 2013 02:12:33 -0700 (PDT) |
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.