Description: MATLAB s version of Conway s Game of Life.
"Life" is a cellular automaton invented by John
Conway that involves live and dead cells in a
rectangular, two-dimensional universe. In MATLAB, the universe is a sparse matrix that is initially all zero.
Whether cells stay alive, die, or nerate new cells depends upon how many of their eight
possible neighbors are alive. By using sparse matrices, the calculations required become astonishingly simple. We use periodic (torus) boundary conditions at the edges of the
universe. Pressing the "Start" button
automatically seeds this universe with several small random communities. Some will succeed and some will fail.
To Search:
File list (Check if you may need any files):
life.m