Contents Previous Next Subchapters

Reports On Allocated Memory Usage
Syntax memory(memtype)
See Also

Description
Returns amount of memory currently being held by O-Matrix for storing elements of matrices where memtype is a character row vector equal to "free" or "inuse". The return value is an integer row vector with one element corresponding to each memory block. The value of the element is the number of bytes in the memory block. If memtype is equal to "free", the memory has been obtained from the system and is being held for use. If memtype is equal to "inuse", the blocks are currently being used for matrix data.

Example
If you enter
     clear
     memory("inuse")
O-Matrix will report the amount of memory used by the variables defined in the autoexec.mat file. If you then enter
     x = 5
     memory("inuse")
O-Matrix will report that an extra block of memory is in use.