%% dump all activations from vector into a string variable
string = sprintf('%d ',activations);
%% read numbers from string into a 2d grid
activationGrid(1:inputWidth,1:inputWidth) = ...
  sscanf(string,'%f',[inputWidth,inputWidth]);
%% plot the activations as a grid
pcolor(activationGrid);
