Matlab workspace
显示 更早的评论
How can I know, the total variables size stored in matlab? I mean, total memory taken by workspace?
回答(2 个)
Fangjun Jiang
2011-11-10
feature('memstats')
If you just want to count the bytes used by the memory:
a=whos;
sum([a.bytes]);
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!