I have set of points (matrix Nx1) and groups for this points (matrix Nx1). I want to plot this points (there is no problem, I do this like this: plot(points, groups, 'o');), but I’d like to set unique color for each group. How can I do this? Now I have only two groups (1,2).
I have set of points (matrix Nx1) and groups for this points (matrix Nx1)
Share
Use logical indexing to select the points you want