Thursday, May 21, 2009

Matlab Function Handles

Matlab function handles are making my life hard. In a function, I created an anonymous function and made it a field of an array of structs, and then I saved this array to file. Loading the file is not going well, apparently because it relies on the function that created the function handle being in exactly the same place relative to where the handle was created. Supposedly, the function should just not work when loaded. I'm finding that for some files it won't load the data at all, and sometimes I have trouble saving as well in Matlab R2009A. In conclusion, function handles are giving me a hard time. I recommend never saving them to file not even by accident.

Monsters Under the Bed

As a child, I was afraid of monsters under my bed, and felt safer if I kept my feet under the blanket, you know, cuz monsters can't get through the magical protection of the blanket. K. brought up the interesting idea that this is some kind of evolved fear -- keeping one's feet under a blanket probably protects them from like snakes and other critters' bites in the night. Anyways, I thought it was an interesting idea.

P.S. Apparently the monster under my bed is the "Soul Sucking HorseFly... of Doom".