2

I'm currently self-teaching myself matlab, and I'm interested in cellular automata that was exhibited in old programs like Wolfram's Life1D and Conway's Game of Life from the early 1980s. Is there any available code that would produce Wolfram's Life1D in matlab in some form? I've searched online but have not found anything. Thanks.

yunone
  • 125
  • 1
  • 5
  • Sounds like an assignment similar to http://www-inst.eecs.berkeley.edu/~cs61c/su08/assignments/hw/02/index.html. You probably will get advice, but not code at SO. – zellus Oct 14 '10 at 06:48
  • 1
    Searching "game of life" with google produces many results also with code, e.g. http://www.mathworks.com/matlabcentral/fileexchange/4798-game-of-life – Mikhail Poda Oct 14 '10 at 06:55
  • 5
    There's also Matlab code for the game of life on Stackoverflow as an answer to a code-golf question: http://stackoverflow.com/questions/3499538/code-golf-conways-game-of-life/3514906#3514906 – Jonas Oct 14 '10 at 11:38
  • Thank you, all of these links are quite helpful. – yunone Oct 20 '10 at 10:59

1 Answers1

2

As the comments have pointed out, the MATLAB file exchange is the place to start your search:

Five minutes of poking around already gives several promising links, the first of which implements Life1d.

For enough details to make your own Life1d implementation you can check out:

The trickiest part will probably be plotting the results efficiently. Again, the MATLAB file exchange would be a good place to look for helper classes.

nsanders
  • 12,250
  • 2
  • 40
  • 47
  • Thanks nsanders, I didn't know of the site mathworks.com, or any of these places for MATLAB file exchange. I will certainly take a closer look. – yunone Oct 20 '10 at 11:00