But, error:
In an assignment A(I) = B, the number of elements in B and I must be the same.Error in ga_function2 (line 9) random_chromosome(popSize) = round(rand(1, 72));random_chromosome = [1;20];for popSize = 1 : 1 : 20 random_chromosome(popSize) = round(rand(1, 72));end
Best Answer