Matlab workspace
21 views (last 30 days)
Show older comments
How can I know, the total variables size stored in matlab? I mean, total memory taken by workspace?
0 Comments
Answers (2)
Fangjun Jiang
on 10 Nov 2011
feature('memstats')
If you just want to count the bytes used by the memory:
a=whos;
sum([a.bytes]);
Walter Roberson
on 10 Nov 2011
The answer can be difficult to define one takes in to account the fact that MATLAB shares arrays.
0 Comments
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!