Plot data vs labels

Download the MATLAB code here.

function [] = fn_plot_data_vs_label(d,label)

d is a N x D data matrix

label is N x 1 column vector representing the label of each data point

where N is the number of points and D is the dimensionality

The color of each label is determined automatically in the code.For instance, the data contains 72 points, and there are 3 classes in the dataset. The figure is shown below.