【问题标题】:Multiple dataset in Plotmatrix MatlabPlotmatrix Matlab中的多个数据集
【发布时间】:2016-04-30 16:39:09
【问题描述】:

我在 DataSet 1 中有 1331 个 4 维数据条目。 我在数据集 2 中也有 1331 个 4D 数据条目。 我需要使用不同颜色将这些数据集绘制在一个绘图矩阵中。 怎么做 ? 这是我迄今为止尝试过的

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');

【问题讨论】:

  • 欢迎堆栈溢出。到目前为止,您尝试过什么?
  • 请贴一些您尝试过的代码sn-ps...
  • 您好,我添加了代码 sn-ps

标签: matlab matlab-figure plotmatrix


【解决方案1】:

如果其他人想知道,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)

【讨论】:

    猜你喜欢
    • 2016-10-06
    • 1970-01-01
    • 1970-01-01
    • 2012-03-08
    • 2019-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多