User`s guide

R2008a
18-36
Clear Variables with Exceptions
With the new clearvars function, you can specify which variables you do not want cleared
from memory.
Information on the State of Memory
The new memory function provides memory usage information such as largest block
available, allowing you to diagnose memory problems on Microsoft Windows platforms.
Compatibility Considerations
The memory function existed in previous versions of MATLAB, but its purpose has
changed. Previously, memory provided help text on how to free additional memory space
for your MATLAB application. The function now returns information on the current state
of memory use and availability in your system.
Define Your Own Function Cleanup Tasks
With the new onCleanup function, you can specify one or more tasks for MATLAB to
perform just before exiting the current function.
New Functions
Name Description
clearvars Clear variables from memory
memory Display memory information
onCleanup Cleanup tasks at function completion
Extended JIT Support
JIT/Accelerator support now extends to statements executed at the MATLAB Command
Line and in cell mode in the MATLAB Editor. This provides improved performance in
these environments.
Enhancements to Image Information and Writing Functions
The image information and writing functions have the following enhancements: