Pages

Sunday, June 7, 2009

Matlab geekery

Check out this AMAZING plot I made in MATLAB!


All the code for it is my matlab book, granted, but I was never the less really excited to be able to plot a strange attractor in 3d.

Its an example of chaos: the function will continue indefinitely, orbiting around these two values, but never reaching them and never repeating (I think), which is a pretty interesting property. I read about this sort of thing a while back in Metamagical Themas, and I remember feeling like it was way above my head. It still is, I suppose, but its neat to be able to dip my feet in the water a little more.

I'm gonna figure out how to rotate this in 3d so you can see the structure better. I'm pretty sure all I need to do is update an array with each value and use that to make the plot, rather than just plotting each point as it's created (when you do it this way, it erases all but the last point on the plot when you rotate it. )

How cool would be to make music out of this? I wonder if such things have already been done? I realized belatedly that my enthusiastic idea probably originated in Douglas Adams's fist Dirk Gently's Holistic Detective Agency book, so it seems likely that at least a few other people have gone down similar paths.