Code covered by the BSD License  

Highlights from
Improved WHOS function

4.0

4.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 3.29 KB File ID: #7366

Improved WHOS function

by Daniel Ennis

 

05 Apr 2005 (Updated 18 Jul 2005)

Improves the readability of the WHOS function.

| Watch this File

File Information
Description

WHOSBETTER is a function that sorts the WHOS output according a user defined input (ie name, size, bytes, type etc.). The output also includes the FULL size rather than the #-D labels that TMW prefers. The output is also human readable and incorporates the use of b (byte), kb (kilobyte), Mb (megabyte), and Gb(gigabyte) labeling.

whosbetter -n name ordered (DEFAULT)
whosbetter -s size ordered (NOT IMPLEMENTED)
whosbetter -b byte ordered
whosbetter -t type ordered (NOT IMPLEMENTED)

SYTNAX: whosbetter -b
         whosbetter -n (DEFAULT)

DBE 2005/04/05

Comment: WHOSBETTER is too long of a filename to type it as often as I used to type WHOS. I like the name because I think it is funny, but in my own workspace I renamed the function to something much shorter.

Future Improvements:
1) Include handling for -s and -t options
2) Anything else?

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
10 Feb 2009 Jo Williams

Does what it says, useful for giving a human-readable version of the variable size. Code could use a bit of tidying up. It'd be good to see this feature in standard Matlab.

Please login to add a comment or rating.
Updates
11 Apr 2005

Improved support to match inputs of WHOS function. Added a summary line to the output.

25 Apr 2005

Minor improvements to input handling, output when debugger is running, and output spacing.

26 Apr 2005

Minor update to handle LOGICAL arrays.

18 Jul 2005

Minor update to handle proper labeling of all data types.

18 Jul 2005

Minor update to handle proper labeling of all data types.

Tag Activity for this File
Tag Applied By Date/Time
development environment Daniel Ennis 22 Oct 2008 07:45:05
who Daniel Ennis 22 Oct 2008 07:45:05
whos Daniel Ennis 22 Oct 2008 07:45:05
save Daniel Ennis 22 Oct 2008 07:45:05
load Daniel Ennis 22 Oct 2008 07:45:05
utilities Daniel Ennis 22 Oct 2008 07:45:05

Contact us at files@mathworks.com