Memory Usage

How can I find the memory used by various variables and arrays in my matlab program. I am using MATLAB R2009b. MTIC and MTOC not supported by this version.

1 个评论

Jan
Jan 2012-4-24
Using the tag "matlab" is meaningless in this forum: *All* question have to concern Matlab...

请先登录,再进行评论。

回答(2 个)

Jan
Jan 2012-4-24

0 个投票

1 个评论

Dear Jan Simon,
My code clears the workspace. So I cant use whos. Is there any other way? Thanks for the fast reply.

请先登录,再进行评论。

Arthur
Arthur 2012-4-24

0 个投票

You can use the profiler with memory stats.

1 个评论

Or the memory function if you're on Windows: http://www.mathworks.com/help/techdoc/ref/memory.html

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by