Matlab workspace

How can I know, the total variables size stored in matlab? I mean, total memory taken by workspace?

回答(2 个)

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 个评论

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?
see updates.

请先登录,再进行评论。

Walter Roberson
Walter Roberson 2011-11-10

0 个投票

The answer can be difficult to define one takes in to account the fact that MATLAB shares arrays.

类别

帮助中心File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

标签

提问:

2011-11-10

Community Treasure Hunt

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

Start Hunting!

Translated by