function Population = PlaceQueens(A,N) % This function places one queen into every column of each % member ofthe population. for i=1:N temp=A(:,:,i); % i-ta ravan (i-ta jedinka) for j=1:8 r=randperm(8); r=r(1); temp(r,j)=1; end Population(:,:,i)=temp; end