% OPTIONS.popsize=4;
% horizon = 6;
% num_gen = 4;
%Population(pop).chrom = structure 'Population' with a cell 'chrom'
% chrom = 1x4 matrix 
%Data is also a struct
for pop=1:1:OPTIONS.popsize
    Population(pop).chrom2 = zeros(horizon,num_gen);
for n=1:1:num_gen    
    a=Population(pop).chrom(1,n);
    b=Data.tend(n)-Data.tstart(n)-1;
    c=a:(a+b)
    %Population(pop).chrom2((a:(a+b)),n)=1;
    Population(pop).chrom2(c,n)=1;
end
end

