I may be wrong here, but I don't see the variable referenced in the global namespace. I am under the assumption that you have to at least define it in the global namespace first, before making any updates to the variable with local functions, in order for it to be saved properly.
I may be completely wrong here, but its how I do it.
Also, just double checking you do have the variable set up to be saved in the .toc file with the
## SavedVariables: variablename
line correct?
|