How can i plot the projection of 3d on 2d?

24 ビュー (過去 30 日間)
Andi
Andi 2022 年 11 月 9 日
コメント済み: Andi 2022 年 11 月 9 日
Hi everyone,
My data is in x, y, z form. I am trying to plot the projection of 3d on 2d.
Here is my sampel attempt:
X=1:1:100;
Y=1:1:100;
Z=1:1:100;
scatter3(x,y,z)
What is get so far:
What i am looking for:
Thank you!
  2 件のコメント
Andi
Andi 2022 年 11 月 9 日
yes, the orginal data set have spairial variation, here i just want to see how can i plot such data in such a fashion.

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

回答 (1 件)

KSSV
KSSV 2022 年 11 月 9 日
編集済み: KSSV 2022 年 11 月 9 日
X=1:1:100;
Y=1:1:100;
Z=1:1:100;
figure
hold on
scatter3(X,Y,Z,[],Z,'filled')
scatter(X,Y,[],Z,'filled')
view(3)
  6 件のコメント
Andi
Andi 2022 年 11 月 9 日
@KSSV i am trying to make similar plot while using online matlab but did not get any output. Plus, I want to plot the 2d view on top on the figure instea dof the bottom and the y axis shoudl be in revesre order.
thank you!

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

カテゴリ

Find more on 2-D and 3-D Plots in Help Center and File Exchange

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by