Code covered by the BSD License  

Highlights from
Conway Game of Life

3.5

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

Conway Game of Life

by

 

12 Apr 2010 (Updated )

The most simple implementation of the cellular automata game of life

| Watch this File

File Information
Description

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,

Ibraheem

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

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

Hi,
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.

Regards,

07 May 2010 J

Hi,

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
A=imread('CA02.JPG');

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

Thanks

Updates
07 May 2010

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

Contact us