Question


2 IF loops inside of a FOR loop!
Hi, I have 2 IF loops inside of a FOR loop. for z = 1:spot_length; if minichrom(1,z) == 0 ...

7 years ago | 1 answer | 0

1

answer

Question


How can I have n randomly generated vectors?
Hi, I want to generate n random vectors. The problem is I put it in the loop and the vector is being replaced in every run, bu...

7 years ago | 2 answers | 0

2

answers

Question


Would you please help me to correct this code?
Hi, I want to generate a 4*12 matrix that consists of 0 and 1 elements only that each row is divided into 2 sections with 6 el...

7 years ago | 1 answer | 0

1

answer

Question


How can I generate a random binary matrix under some conditions?
Hi, I want to generate a 4*960 binary matrix but there are some conditions. For example in row 1, in the first 60 elements, maxi...

7 years ago | 2 answers | 0

2

answers

Question


How can I code my variable length chromosomes for GA?
Hi, I need to code my chromosomes in a way that each chromosome consists of several string (I'm not sure if this is possible, I...

7 years ago | 2 answers | 0

2

answers