% mfile initializeboundaries % copy data from inside arrays to boundaries at beginning of game of life % corners don't matter fish(1,:)=fish(d-1,:); fish(d,:)=fish(2,:); fish(:,1)=fish(:,d-1); fish(:,d)=fish(:,2);