Whos

버전 1.2.0.0 (2.83 KB) 작성자: Matt J
Variant of whos(). Gives memory in Kbytes and displays array dimensions even for 4D+ arrays.
다운로드 수: 484
업데이트 날짜: 2011/3/29

라이선스 보기

"Whos" is a customized version of MATLAB's usual "whos" function.

The differences are,

(1) "Whos" will compute/display memory in kilobytes whereas "whos" displays in bytes.

(2) "Whos" will always display all array dimensions whereas "whos" will not display array dimensions for 4th and higher dimensional arrays.


EXAMPLE: Given the following arrays

A=rand(10,20,30,40);
B=rand(5,10,15,20,25,'single')*i;

using "whos" displays the following:

>> whos
Name Size Bytes Class Attributes

A 4-D 1920000 double
B 5-D 3000000 single complex


whereas Whos will display the following

>> Whos
Name Size Kilobytes Class Attributes

A 10x20x30x40 1875 double
B 5x10x15x20x25 2930 single complex

An unfortunate limitation is that Whos relies on EVALIN and so will not work correctly in a workspace context reached using DBUP and DBDOWN. I elaborate on this somewhat in this Newsgroup thread:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/303357

Hopefully, TMW will provide a way around this eventually.

인용 양식

Matt J (2024). Whos (https://www.mathworks.com/matlabcentral/fileexchange/30534-whos), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Right-justified the "Kilobytes" column. Also, memory greater than 10KB is now rounded up to integers.

1.1.0.0

Small bug fix. Rendering of sizes MxNxPxQ... could have appeared as MxxNxPxx or some variety of this.

1.0.0.0