% mfile updateboundaries % copy data from boundaries to inside or vice versa as needed in game of life fish(d,:)=fish(2,:); fish(1,:)=fish(d-1,:); fish(:,d)=fish(:,2); fish(:,1)=fish(:,d-1);