memoryInfo()
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Returns a struct with the information about memory usage in kB. For example:
>> printR(memoryInfo)
struct():
total: 3932392
free: 156216
used: 3776176
cache: 1154900
usedMatlab: 588220
swap: [1x1 struct]
struct().swap:
total: 4095696
free: 3294648
used: 801048
usedMatlab: 7488
Note: MATLAB swap usage calculation on Windows was not implemented. You can get only swapusage for all applications running on the machine.
Cite As
Sviatoslav Danylenko (2023). memoryInfo() (https://www.mathworks.com/matlabcentral/fileexchange/45598-memoryinfo), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |