Matlab workspace
24 次查看(过去 30 天)
显示 更早的评论
How can I know, the total variables size stored in matlab? I mean, total memory taken by workspace?
0 个评论
回答(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
The answer can be difficult to define one takes in to account the fact that MATLAB shares arrays.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!