Returns a struct with the information about memory usage in kB. For example:
swap: [1x1 struct]
Note: MATLAB swap usage calculation on Windows was not implemented. You can get only swapusage for all applications running on the machine.
This is a great idea, but it doesn't work on my Mac. No errors are generated, but the structure fields all come back as zero or nan. Digging into the function, I can see that the undocumented "feature" command returns the correct PID, but the subsequent awk call cannot open the file /proc/(PID)/status.
I'm running MATLAB2019a on OS X High Sierra.
Nice... it works with my Ubuntu 18.04 since the built-in MATLAB function "memory" doesn't work
Excellent, and it does work on non Windows systems. Thanks.