1. 1.
    0
    function [p,zg]= pop(input, output,in,row,col)
    x1=((input+1):((row*col)+input))
    x2=reshape(x1,row,col)
    x3=max(x2)

    z=zeros(1,row*col*(in+1)) %populasyonun bizzat kendisi

    zg=reshape(z,(col*(in+1)),[])'
    %random bağlantı ata

    for bb1= 1:row
    for bb2= 1:3
    zg(bb1,bb2)=randi(input)
    end
    end

    for cc1= 1:row
    for cc2= 4:6
    zg(cc1,cc2)=randi(x3(1))
    end
    end

    for cc1= 1:row
    for cc2= 7:9
    zg(cc1,cc2)=randi(x3(2))
    end
    end

    for cc1= 1:row
    for cc2= 10:12
    zg(cc1,cc2)=randi(x3(3))
    end
    end

    %random kapı ata
    for aa = 1:in+1:(in+1)*col

    for bb= 1:row
    zg(bb,aa) = randi(row)
    end
    end
    zg

    zr=reshape(zg,1,[]);

    p= randi(max(x3),1,output)
    end
    ···
   tümünü göster