Plotting Points in 3D

203 vues (au cours des 30 derniers jours)
Nikolay Rodionov
Nikolay Rodionov le 28 Juil 2012
Hi,
I would like to make a plot of points in 3 dimensions. I have each points X,Y,Z position and I also need to color them based on a fourth numerical variable.
How can I do this?

Réponse acceptée

bym
bym le 28 Juil 2012
from the documentation:
scatter3(X,Y,Z,S,C)
scatter3(X,Y,Z,S,C) displays colored circles at the locations specified by the vectors X, Y, and Z (which must all be the same size).

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by