When I check the MATLAB 5.0 (release 10) documentation it says that pack works by saving the workspace to a file, clearing all functions and variables from memory, and loading the file.
If it were executed from a function or script then it would clear the function or script from memory, destroying what it was executing. Especially if it was a function, since it is not the current workspace that is saved, just the base workspace.
So you have code that blows itself out of the water and you are upset that current versions have no
feature('allowcodetocorruptitself', true)
... Or do I need to try find even older release documentation?
Best Answer