is it posible to create matrixplot for several data types?
显示 更早的评论
Hi, i have a data set on wich i performed a PCA analysis. after getting the "scores" of the analysis im trying to create a matrixplot. i also have two index vector. because the data consists of two groups.
my question is:
is it possible to create a matrixplot that each group (according to the index vectors) will be in a different color? if im writing "matrixplot(X)" it gives me a matrixplot with all the data points in same color, i want to separate the two groups by color and show them on the same matrixplot.
thank you for your help.
Dany
回答(1 个)
David Sanchez
2014-5-28
I think -plotmatrix-does not have the option of holding the plot to add extra data. You can use plot and hold on instead:
plot(X(indx1,1),X(indx1,2)'b.')
hold on
plot(X(indx2,1),X(indx2,2)'r.')
hold off
2 个评论
Dany
2014-5-28
David Sanchez
2014-6-6
I agree, but if the built-in function does not exist, you have to code it yourself
类别
在 帮助中心 和 File Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!