WOW! That seems like you hardly had to think about it...

I've already tried to go through the code to understand it, based on my knowledge of how I might program something like it in MATLAB, but it's VERY different syntax, and I'm thrown off quite a bit.

Thanks though -- I ran the code and it worked exactly as detailed.