how to plot high dimensional data(scatter or scatter3)
1 次查看(过去 30 天)
显示 更早的评论
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
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);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!