Borrar filtros
Borrar filtros

how to plot high dimensional data(scatter or scatter3)

1 visualización (últimos 30 días)
Amishi
Amishi el 4 de Dic. de 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

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 4 de Dic. de 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);

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by