|
From: | Kai Torben Ohlhus |
Subject: | Re: Binary decoding function problem |
Date: | Wed, 17 Jul 2013 13:45:27 +0200 |
Is each item in your matrix a string or an integer???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,
--DAS
[Prev in Thread] | Current Thread | [Next in Thread] |