Matlab workspace

30 views (last 30 days)
Raviteja
Raviteja on 10 Nov 2011
How can I know, the total variables size stored in matlab? I mean, total memory taken by workspace?

Answers (2)

Fangjun Jiang
Fangjun Jiang on 10 Nov 2011
feature('memstats')
And a useful link: Memory Management Guide
If you just want to count the bytes used by the memory:
a=whos;
sum([a.bytes]);
  2 Comments
Raviteja
Raviteja on 10 Nov 2011
I need only workspace memory...
There are 4 types of memory showing in the list
Physical Memory (RAM):
Page File (Swap space)
Virtual Memory (Address Space)
Largest Contiguous Free Blocks
In which What is exactly related to workspace memory?
Fangjun Jiang
Fangjun Jiang on 10 Nov 2011
see updates.

Sign in to comment.


Walter Roberson
Walter Roberson on 10 Nov 2011
The answer can be difficult to define one takes in to account the fact that MATLAB shares arrays.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!