How to plot in Matlab by labels?
Suppose You have some data:
1st case – we have 1-d (dimension) data or vector, so the next step is to plot this vector:
>plot(data,'b*');

Simple Plot
>[IDX,C]=kmeans(data,5,'emptyaction','singleton');>scatter(1:1000, data, 30, IDX, 'filled');
scatter plot with lables

Scatter plot with Y-log scale
Leave a Reply