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.

No comments: