Display ws variables size in KB, MB or GB

バージョン 1.6.0.0 (3.49 KB) 作成者: Oleg Komarov
Displays with appropriate unit of data storage. Sorting by size/name (non c.sensitive) is supported.
ダウンロード: 1.2K
更新 2010/2/22

ライセンスの表示

Display in command window the size of the variables of the base workspace using KB, MB and GB

SYNTAXES:
(1) WSSIZE Display preserving the order of the workspace pane using mixed units
(2) WSSIZE arg or WSSIZE('arg') One argument syntax
(3) WSSIZE arg1 arg2 or WSSIZE('arg1','arg2') Two arguments syntax

From p7v5 displays the grand total.

Arguments: should be char; max two arguments are allowed. Arguments are not case-sensitive.The order of the two types of arguments doesn't matter. Shortened arguments can be supplied ('s' instead of 'size').

For details see help
For examples see the attached image.

Aknowledgments: original idea by Bastiaan Zuurendonk, TMW technical support engineer. Implemented suggestions by Yair Altman (see comments)

Comments/suggestions/error reports are welcome.
p7v5

引用

Oleg Komarov (2025). Display ws variables size in KB, MB or GB (https://www.mathworks.com/matlabcentral/fileexchange/26250-display-ws-variables-size-in-kb-mb-or-gb), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2009b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersEnvironment and Settings についてさらに検索
謝辞

ヒントを与えたファイル: figurememory(h)

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.6.0.0

Per Michael suggestion added grand total at the bottom. Restructured code.

1.5.0.0

Now 'size' sorts from smallest to biggest. Suggestion by Andy.

1.4.0.0

From 'base' to 'caller' size display.

1.3.0.0

Added reverse sorting and unit selection on suggestion by Yair Altman. Edited help. Added more checks.

1.1.0.0

Edited description; Added sorting by not case-sensitive name; Aknowledgments for Bastiaan Zuurendonk (TMW technical support engineer)

1.0.0.0