Clear Filters
Clear Filters

Memory Usage

2 views (last 30 days)
Unnikrishnan PC
Unnikrishnan PC on 24 Apr 2012
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 Comment
Jan
Jan on 24 Apr 2012
Using the tag "matlab" is meaningless in this forum: *All* question have to concern Matlab...

Sign in to comment.

Answers (2)

Jan
Jan on 24 Apr 2012
  1 Comment
Unnikrishnan PC
Unnikrishnan PC on 24 Apr 2012
Dear Jan Simon,
My code clears the workspace. So I cant use whos. Is there any other way? Thanks for the fast reply.

Sign in to comment.


Arthur
Arthur on 24 Apr 2012
You can use the profiler with memory stats.
  1 Comment
Kaustubha Govind
Kaustubha Govind on 24 Apr 2012
Or the memory function if you're on Windows: http://www.mathworks.com/help/techdoc/ref/memory.html

Sign in to comment.

Categories

Find more on Multidimensional Arrays 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!