View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Conway Game of Life

3.5 | 2 ratings Rate this file 15 Downloads (last 30 days) File Size: 7.71 KB File ID: #27233 Version: 1.1
image thumbnail

Conway Game of Life



12 Apr 2010 (Updated )

The most simple implementation of the cellular automata game of life

| Watch this File

File Information

You may input an image or use random initialized values and see the results.
You can change the rules with new rules.
You can control the time.

Do you ave any related question, any suggestions to speed up the code, you are more than welcome. ^_^

Best regards,


Required Products Image Processing Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
23 Nov 2013 Suraj Kamya

Suraj Kamya (view profile)

Nice and simple code! Helps me to learn CLA.
Thank You :)

19 Sep 2010 jacky chen

thanks ,I am learning the CA

07 May 2010 Ibraheem Al-Dhamari

Thanks for your comments.
I have updated the zip file to contain the image example.
You can do the following:
1. put any binary image in the same folder.
2. put the image file name in the line :
A=imread('Your_ image_ file_ name.image type');

You should notice that the image is an example, you may put your own initial values matrix which is suiatble for your problem or you may start with a random matrix.


Comment only
07 May 2010 J

J (view profile)


When i try running your program it comes up with the following error message:

??? Error using ==> imread at 361
File "CA02.JPG" does not exist.

Error in ==> gameoflifedownloaded at 29

What do I have to change in the program to get it to work?


Comment only
07 May 2010 1.1

I have added a sample image, but you may change it with your initial states suitable for your problem.

Contact us