Memory Utilization of a program in matlab.
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(2 个)
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.
0 个评论
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?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!