Memory in a multiple of the unit byte

版本 1.0.0.0 (3.6 KB) 作者: Jerome Briot
Display memory information in a multiple of the unit byte
15.0 次下载
更新时间 2018/3/14

查看许可证

memory2 is a wrapper for the built-in memory function but displays memory information in a multiple of the unit byte.
Accepted units are: B, kB, MB, GB, KiB, MiB and GiB
Example:

>> user = memory2()

user =

MaxPossibleArrayBytes: 2.5348e+10
MemAvailableAllArrays: 2.5348e+10
MemUsedMATLAB: 897638400

>> user = memory2('gb')

user =

MaxPossibleArrayBytes: 25.3109
MemAvailableAllArrays: 25.3109
MemUsedMATLAB: 0.8894

>> user = memory2('gib')

user =

MaxPossibleArrayBytes: 23.5741
MemAvailableAllArrays: 23.5741
MemUsedMATLAB: 0.8319

引用格式

Jerome Briot (2024). Memory in a multiple of the unit byte (https://www.mathworks.com/matlabcentral/fileexchange/66488-memory-in-a-multiple-of-the-unit-byte), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Workspace Variables and MAT-Files 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!

memory2/

版本 已发布 发行说明
1.0.0.0