plot a vector with 3 axes

2 ビュー (過去 30 日間)
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2018 年 12 月 4 日
コメント済み: Star Strider 2018 年 12 月 5 日
Hi all,
I am trying to plot a vector in a graph with 3 axes, but I am confused how to do it. I tried with plot 3.
The matrix is
A=[20 15 120 0.85;20 9 100 1.35;30 6 100 0.18; 30 9 140 1.65; 40 6 80 0.25;40 12 100 1.42]
So I would like to plot the 4th column, with 3 axes that are defined by the other three columns.
any ideas how to do that?
thanks!
  3 件のコメント
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2018 年 12 月 4 日
yeah actualy x,y,z are columns 1,2 and 3. And the 4th column is the f(x,y,z).
Image Analyst
Image Analyst 2018 年 12 月 4 日
How would you like the data point to look for different values of the 4th column? Let's say one (x,y,z) point had a value of 10 and another had a value of 140. In what way would they look different?

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

採用された回答

Star Strider
Star Strider 2018 年 12 月 4 日
In this universe, we are limited to 3 large dimensions (although 11 may actually exist). The dimension in the plot can be the color of the markers:
figure
scatter3(A(:,1), A(:,2), A(:,3), 75, A(:,4), 'p', 'filled')
grid on
  2 件のコメント
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2018 年 12 月 5 日
Hahaha yeah that's right,
I guess the question is not valid I was a bit confused
anyway thanks a lot!
Nikolas
Star Strider
Star Strider 2018 年 12 月 5 日
As always, my pleasure!

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

その他の回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 4 日

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by