Effacer les filtres
Effacer les filtres

how to plot high dimensional data(scatter or scatter3)

1 vue (au cours des 30 derniers jours)
Amishi
Amishi le 4 Déc 2011
How should i plot a data which has n dimensions for example 6 or 9 dimensions using a scatter3 plot
For example
[88 89 64 23 44 22
44 11 67 65 32 10
87 76 88 74 12 38
.... .... . . . . ..... ......
21 87 99 59 57 33]
for example a matrix of size 300* 6 or 600*9

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 4 Déc 2011
A matrix of size 300x6 or 600x9 is not a dimension of 6 or 9. It's two dimensional with size of 300x6 or 600x9. Anyway, it is a terminology thing.
Depending on the meaning of your data, there are many ways to show it in a 3-D figure. The problem now is that you don't seem to have data for the x and y axis. You can still assume that x and y be the linear index, i.e. if your data size is 300x6, x axis will be 1 to 300 and y axis will be 1 to 6.
Data=[88 89 64 23 44 22
44 11 67 65 32 10
87 76 88 74 12 38
21 87 99 59 57 33];
figure;
surf(Data);
figure;
mesh(Data);

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by