I adapted an implementation of the single-layer perceptron for Octave (open-source Matlab) that I found online. It runs incredibly slow compared to my nodeJS implementation, but one can see the progress graphically which I think is really cool. Gist attached.
http://gist.github.com/3870213.git