

number_of_in = 10;
number_of_hidden = 12;
number_of_out = 6;

weight_from_in_to_hidden = 2*rand(number_of_in, number_of_hidden)-1;
weight_from_hidden_to_out = 2*rand(number_of_hidden, number_of_out)-1;

in = sign(2*rand(1,number_of_in)-1);

in

hidden=[];

for j = 1:number_of_hidden
   hhh = 0;
   for i = 1:number_of_in
         sum =  in(i) * weight_from_in_to_hidden(i,j);
         hhh = hhh + sum;
   end
   hidden (1,j) = sign(hhh);
end

hidden

out=[];

sum - 0;
for j = 1:number_of_out
   ooo = 0;
   for i = 1:number_of_hidden
         sum =  hidden(i) * weight_from_hidden_to_out(i,j);
         ooo = ooo + sum;
   end
   out (1,j) = hhh;
end

sign(out)