我在DataSet 1中有1331个四维数据条目。我在数据集2中也有1331个四维数据条目。我需要用不同的颜色将这些数据集一起绘制在一个绘图矩阵中。如何做到这一点?这就是我到目前为止所尝试的
plotmatrix([w01 ,w02, w03,w04]);hold on
plotmatrix([w11 ,w12, w13,w14]);它在散点图的情况下工作得很好
scatter3(w01 ,w02, w03,'filled')
hold on;
scatter3(w11 ,w12, w13,'filled');
hold on;
scatter3(w21 ,w22, w23,'filled');发布于 2017-01-18 23:46:48
如果其他人想知道,gplotmatrix是你的朋友。试试这个:
V1 = rand(100,3); % a random vector
V2 = sin(V1); % a function of V1
groups = (V2(:,1)>0.3)*1; % defining groups for discriminating the variables.
gplotmatrix(V1,V2,groups)https://stackoverflow.com/questions/36957484
复制相似问题