How to specify the RGB color of dots in scatter3?

1 view (last 30 days)
ROJO
ROJO on 17 Apr 2017
Edited: Stephen23 on 17 Apr 2017
Hi, I have a question about using scatter3.
I need to use dots '.' for my figure, but I can't figure out how to specify the RGB color of it. My code is like
scatter3(X,Y,Z,'.')
I tried bunch of sizes of a circle, but the dot('.') is the best for my figure. How can I specify the RGB color of the dots?
Thank you,
  1 Comment
Stephen23
Stephen23 on 17 Apr 2017
Edited: Stephen23 on 17 Apr 2017
@ROJO: The scatter3 documentation gives clear examples and explanations of how to color the markers. The word "color" is mentioned exactly fifty times on that page (did you read any of them)? Not only that there are full working examples which you can try yourself (did you try any of them?). Quiz question: why does MATLAB have documentation? (Hint: for users to look up and know how to use MATLAB).

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!