フィルターのクリア

how to plot high dimensional data(scatter or scatter3)

1 回表示 (過去 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 件のコメント
Oleg Komarov
Oleg Komarov 2011 年 12 月 4 日
What type of data is that?

サインインしてコメントする。

回答 (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 Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by