"Function MEMORY is not available on this platform."

 Réponse acceptée

Steven Lord
Steven Lord le 26 Juil 2020

0 votes

As stated in the Limitations section on the documentation page for the memory function, this function is only supported on Microsoft Windows systems.

3 commentaires

alpedhuez
alpedhuez le 26 Juil 2020
Thank you. Is there any way to know for Linux version?
Not sure if the functionality is identical, but the following call to java will give you a number that matches up with the Java heap memory that is set in preferences:
runtime = javaMethod('getRuntime', 'java.lang.Runtime');
maxMemory = javaMethod('maxMemory', runtime);
If I recall, on Linux you would want to first find your process ID, and then example the /proc file system entry for that process, as that can tell you how much memory the process is using.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Software Development dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by