

P_12 = ones(N,N);
P_23 = ones(N,N);
P_34 = ones(N,N);
P_45 = ones(N,N);

W_12 = ones(N,N);
W_23 = ones(N,N);
W_34 = ones(N,N);
W_45 = ones(N,N);

%initialize first layer ... done in network_iterate

layer_2_input = W_12*x_1;
x_2 = zeros(N,1);

for j=1:N
    if layer_2_input(j)>0
        x_2(j)=1;
    end
end

layer_3_input = W_23*x_2;
x_3 = zeros(N,1);

for j=1:N
    if layer_3_input(j)>0
        x_3(j)=1;
    end
end

layer_4_input = W_34*x_3;
x_4 = zeros(N,1);

for j=1:N
    if layer_4_input(j)>0
        x_4(j)=1;
    end
end

layer_5_input = W_45*x_4;
x_5 = zeros(N,1);

for j=1:N
    if layer_5_input(j)>0
        x_5(j)=1;
    end
end
