Memory Utilization of a program in matlab.

조회 수: 4 (최근 30일)
G Jothi
G Jothi 2012년 10월 18일
Sir,
Elasped Time is calcuated by using tic toc function.
How should calcuate run time memory utilization of a program.
Any function is available.
thanks

답변 (2개)

Jason Ross
Jason Ross 2012년 10월 18일
Try "memory"?
It would help if you listed your platform and MATLAB version, as this only works on Windows.
You can also use OS functions to get the memory size, too -- on Windows you can use
tasklist /FI "IMAGENAME eq matlab.exe"
and on Linux/Mac you can use "ps", grep, awk, etc. You could call these from a system call and parse the output.

Derek O'Connor
Derek O'Connor 2012년 10월 18일
A few years ago I suggested to Mathworks that they include memory usage in their Profiler. They said they were thinking about it.
Are they still thinking?

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by