No BSD License  

5.0

5.0 | 1 rating Rate this file 20 Downloads (last 30 days) File Size: 30.5 KB File ID: #16181
image thumbnail

DataMatrix

by

 

30 Aug 2007 (Updated )

Display a color-coded image of a data matrix with programmable data-tips & click callbacks

| Watch this File

File Information
Description

DATAMATRIX(data) accepts a numeric or logical data matrix (0, 1 or 2D) and presents it in a color-coded image. Complex data is supported by color-coding the data's complex modulus (magnitude). NaN elements are assigned a specific shade of gray to distinguish them.

The user can specify optional labels, as well as data-tips and/or click callbacks for any or all matrix cells. These optional parameters can be specified either directly, or via order-indifferent case-insensitive property-value pairs, or a combination of both.

Supported properties include: x/y title, x/y labels & rotation (orientation), cell data-tips, cell callbacks, min/max data clamping, reference color (see extensive help within).

Users may use this submission either as-is, or as a learning tool to study data-tip & click callback customizations (including some undocumented version-related quirks/hacks).

Warning:
This code relies in part on undocumented and unsupported Matlab functionality. It works on Matlab 6+, but use at your own risk! Some features (e.g., data-tips) are unavailable on very old Matlab versions.
 
Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
05 Sep 2007 Mathias Ortner

I have to say : I always enjoyed Mr Altman submissions, but this one is a must have. Appart from the Java hacks that are fun to see, the function in itself is USEFUL!!

Are you bothered by X- Y axis convention of imagesc ? Are you bothered by unreadable colorbars ? Well, this is for you.

Contact us