how to plot high dimensional data(scatter or scatter3)

조회 수: 2 (최근 30일)
Amishi
Amishi 2011년 12월 4일
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

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 12월 4일
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);

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by