Model of an adaptive growth process
The following two videos are from a MATLAB implementation of the model described in the paper: Adaptive Growth Processes: A Model Inspired by Pask's Ear. This model is inspired on the experiment by Gordon Pask in the 50s where he 'evolved' an 'ear' to distinguish between two tones using a chemical solution and an electric signal as a reward. The code can be found here. The code also demonstrates how to get a video out of MATLAB. I recommend getting the video in .avi format without compression and then using a program like VirtualDub to compress it afterwards.
Each frame of the videos shows the system state every 50 iterations for 10000 iterations with a frame rate of 10 frames per second. Sometimes the model finds a suboptimal solution where there are secondary 'arms' that are not connected to the area that produces a reward. For more information refer to the above paper.