MATLAB: How scatter with groups in this format

gscatterplotscatterStatistics and Machine Learning Toolbox

I have a variable of 10000by500. Each row of this matrix is an observation of 500 values. I also have a cell array 10000by1 which contains the names corresponding to each row of the larger matrix. Some of rows have the same name as each-other. I would like to scatter plot the 10000by500 matrix, and apply a different color for each unique name in the naming cell array.

Best Answer

doc gscatter.