Having Fun Yet?
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Chris Conant
le 28 Fév 2017
Commenté : Chris Conant
le 28 Fév 2017
Reverse compatibility for MATLAB is not very impressive.
>> fwave1
Warning: PACK can only be used from the MATLAB command line.
> In fwave1 (line 335)
Oh getting all these 20-30 year old programs to work with this "new and improved" version is going to be time consuming. Good thing I'm retired, and still have AT-MATLAB with gpp on a DOS machine. Hey, it'll keep me out of trouble. Probably should wait till I have a campfire and a beer. :-)
6 commentaires
Réponse acceptée
Walter Roberson
le 28 Fév 2017
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?
Plus de réponses (1)
Jan
le 28 Fév 2017
A campfire and a beer is a valuable solution.
pack was an evil hammer to start a garbage collection and defragment the memory. On modern machines install enough RAM and omit all calls to pack.
I suffer from the the limited backward compatibility of Matlab also, but compared to other programming environments, Matlab is the most stable system I know. Especially pack is a bad example, because it was a really good idea to limit its power.
3 commentaires
Jan
le 28 Fév 2017
I'm still frustrated when I see how damn fast Matlab 5.3 or 6.5 starts in a virtual machine. While I wait endless seconds until the first figure is drawn by R2016b, they appear almost immediately in the ancient versions. Some weeks ago I ran some tests with compiled C-mex files and was 20% faster under R2009a.
Nevertheless, while Matlab 6.5 saves me seconds of runtime, the MLint code checker saves me hours for debugging. I will not miss uipanel's and uitree's anymore, nor the MExceptions in TRY/CATCH. I hate the auto-completion, but it is marvelous to rename all occurrences of a variable automatically.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!