Code covered by the BSD License  

Highlights from
displaytable

4.33333

4.3 | 3 ratings Rate this file 8 Downloads (last 30 days) File Size: 3.71 KB File ID: #27920
image thumbnail

displaytable

by Matt Caywood

 

17 Jun 2010 (Updated 08 Mar 2011)

Legible display of N-dimensional data tables with color highlighting of entries.

| Watch this File

File Information
Description

Offering many more possibilities than Matlab's built-in matrix display functions, displaytable prints out a space-saving, legible N-dimensional table of numeric data including:

* dimension (row and column) labels and headings
* specified cell spacing and precision

* display dimensions in any order by specifying an output permutation!

* NEW: highlight cells with any colors you want, using the cprintf function (also on Matlab Central)! Note: cprintf relies on undocumented Matlab features.

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
24 Jun 2010 Yogesh PARTE

Good utility code.

08 Mar 2011 Ralf

I like this function very much. However, it appears that 0 is displayed sometimes as -0. Can this been fixed?

08 Mar 2011 Matt Caywood

Hi Ralf, "negative zero" was actually a fundamental issue with Matlab's printf (on some platforms)

I agree it is an annoyance, and have submitted a new version that should fix it.

01 May 2012 John

This is a great utility, I just have one feature request: the ability to have the contents of a column left justified. Thanks!

Please login to add a comment or rating.
Updates
29 Jun 2010

Fixed some problems with degenerate tables with dimension values = 1

15 Jul 2010

added option for table permutations

20 Jul 2010

added color display of tables

21 Jul 2010

fixed header spacing

08 Mar 2011

fix negative zero issue

Tag Activity for this File
Tag Applied By Date/Time
matrix Matt Caywood 17 Jun 2010 11:23:15
array Matt Caywood 17 Jun 2010 11:23:15
table Matt Caywood 17 Jun 2010 11:23:15
data Matt Caywood 17 Jun 2010 11:23:15
ndimensional Matt Caywood 17 Jun 2010 11:23:15
display Matt Caywood 17 Jun 2010 11:23:15
table Yogesh PARTE 24 Jun 2010 09:53:53
matrix Yogesh PARTE 24 Jun 2010 09:53:53
display Yogesh PARTE 24 Jun 2010 09:53:53
data exploration Matt Caywood 16 Jul 2010 11:04:59
color Matt Caywood 21 Jul 2010 09:45:46
data visualization Matt Caywood 21 Jul 2010 09:45:46
highlight Matt Caywood 21 Jul 2010 09:45:46

Contact us at files@mathworks.com