Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

bytes

Memory used by the current session

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

bytes()

Description

bytes() returns the current memory consumption.

bytes returns the following three numbers:

  • The number of bytes used logically; this is the amount of memory which is actually used for storing MuPAD® data.

  • The number of bytes physically allocated by the memory management; this is the amount of memory MuPAD has allocated from the operating system. The difference between the physical and the logical bytes is the amount of memory which has already been reserved for future calculations.

  • The maximum number of bytes ever allocated from the operating system during the current session. This value never decreases, not even on a call to reset.

Examples

Example 1

In a freshly started MuPAD session, bytes may return the following data on the memory consumption of the session:

bytes()

Each computation increases the memory usage:

sin(PI): bytes()

solve(x-1=0, x): bytes()

Return Values

Sequence of three integers.

See Also

MuPAD Functions

Was this topic helpful?