How can i plot the projection of 3d on 2d?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1186378/image.png)
What i am looking for:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1186383/image.png)
Thank you!
2 comentarios
Respuestas (1)
KSSV
el 9 de Nov. de 2022
Editada: KSSV
el 9 de Nov. de 2022
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 comentarios
KSSV
el 9 de Nov. de 2022
dat=readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1186483/dd.csv/dd.csv');
X=dat.(1);
Y=dat.(2);
Z=dat.(3);
figure
hold on
scatter3(X,Y,Z,[],Z,'filled')
scatter(X,Y,[],Z,'filled')
view(3)
colormap(jet)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!