简体   繁体   中英

How to make scatter plot matrix in matlab with different colors in one plot?

In matlab plotmatrix can be used for displaying matrix of plots. Is it possible to have different colors in one plot? I have high dimensional data (eg 10 dimensions) and I want to display them using plot matrix. I want to use different colors for different clusters.

I want it look like this:

在此处输入图片说明

Also I want to assign color programatically ie to to have

colors=lines(numClusters);

and then for cluster i=1:n assign

'Color',colors(i)

gplotmatrix命令可以用于

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM