bytes

Memory used by the current session

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

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?