File Exchange

image thumbnail

Color code a scatter plot

version 1.0 (3.3 KB) by

Color code a scatter plot in one, two, or three dimensions according to scalar function of the data.

2 Downloads

Updated

View License

The function buildcmap.m takes a vector as input, where entry i represent the value of a function (f) at the ith data point. Using output from buildcmap.m, showset.m plots one, two, or three dimensional data as a colored point cloud, where the color encodes the value of f. For example, the files can be used to visualize four dimensional data in three-space: position encodes three variables while the color encodes the fourth.

Comments and Ratings (1)

Tor Eivind

Hi! Neat code. It would be very beneficial if you included code for the legend(some way of linking the color to the values)

MATLAB Release
MATLAB 7.9 (R2009b)

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

» Watch video