# Using CellularAutomation with a Grid Input

**URL:** <https://community.wolfram.com/t/using-cellularautomation-with-a-grid-input/3624>\
**Category:** Questions\
**Tags:** ruliology, mathematica\
**Created:** [October 13, 2014, 8:05pm UTC](https://community.wolfram.com/t/using-cellularautomation-with-a-grid-input/3624 "2014-10-13T20:05:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dronz](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@dronz](https://community.wolfram.com/u/dronz)\
**Post date:** [October 13, 2014, 8:05pm UTC](https://community.wolfram.com/t/using-cellularautomation-with-a-grid-input/3624/1 "2014-10-13T20:05:28Z")

</div>

Is it possible to give the Cellular Animation function an initial condition of an nxm matrix with specified ones and zeros? Or does it only work if the input is a single “row” of data?

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [October 13, 2014, 9:53pm UTC](https://community.wolfram.com/t/using-cellularautomation-with-a-grid-input/3624/2 "2014-10-13T21:53:56Z")

</div>

Of course you can always program your own Cellular Automota function to do whatever you want, but if you’re talking about the CellularAutomaton function, there are several examples in the documentation showing it being used for 2D set of initial conditions.

You can find these examples in [the documentation for CellularAutomaton](http://reference.wolfram.com/language/ref/CellularAutomaton.html) under Scope \> Multidimensional Rules

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [October 13, 2014, 9:56pm UTC](https://community.wolfram.com/t/using-cellularautomation-with-a-grid-input/3624/3 "2014-10-13T21:56:26Z")

</div>

A good example of this is the implementation of Conway’s “Game of Life”:

[http://www.wolfram.com/language/gallery/implement-conways-game-of-life/](http://www.wolfram.com/language/gallery/implement-conways-game-of-life/)
