View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 3.22 KB File ID: #40018 Version: 1.3
image thumbnail




25 Jan 2013 (Updated )

Display contents and structure of a cell array using ASCII boxes.

| Watch this File

File Information

SHOWCELLS was inspired by the Dyalog APL display of boxed variables. It is intended to provide a clear visual display of the contents of a cell array.

If you have a cell array c = {1:4}, MATLAB normally shows this as [1x4 double], hiding the actual contents of the array. SHOWCELLS shows the contents, as well as providing a visualization of the shape and nesting of cell arrays.

SHOWCELLS can return a char array of the rendering as well. For arrays with three or more dimensions, the representation is saved as a cell array of char matrices.

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
01 Feb 2013 Jan Simon

Jan Simon (view profile)

I did not test the code, but the example looks so nice, that I want to rate this already.

28 Jan 2013 1.1

Updated screenshot to show traditional MATLAB view of cells along with SHOWCELLS output. Tiny tweaks to source code spacing and punctuation, no functional changes.

29 Jan 2013 1.2

Added support for N-dimensional cell arrays; reduced memory usage; added indentation to make consistent with MATLAB's display of variables.

31 Jan 2013 1.3

Replaced ISMATRIX with test for NDIMS > 2. This should allow older versions of MATLAB to run SHOWCELLS.

Contact us