Unload matrix and free memory
Find variables in your workspace that contain large datasets both in your script or from a console type
To clear all memory usage
You can right click on individual variables in the workspace editor and delete them using the IDE if you like.
source to share
What do you need to do
and then release
. The first command tells Matlab that a reference to the memory stored for mydata is no longer needed. The second command tells Matlab to free unused memory. If you don't
, then the memory will be freed when the Matlab memory manager makes a decision.