N = 20;

%initialize first layer ...
x_1=ones(N,1);


network_run

%Plot the number of cells that spike in each layer
n_1 = sum(x_1);
n_2 = sum(x_2);
n_3 = sum(x_3);
n_4 = sum(x_4);
n_5 = sum(x_5);

n_list=[n_1 n_2 n_3 n_4 n_4];

figure
set(gca,'FontSize',14)
plot(n_list,'o','MarkerSize',14);
title('number on per layer')