Scattering 3D points (x y z) on a 2D plot (x y)

Hello,
I'm trying to scatter 3D points (x y z) on a 2D plot (x y) such that the z axis is hidden, but hovering on data points shows the value of x y AND z for that particular point. I've searched around found nothing.
The goal is for it too look something like the impixel() function, where the plot is 2D, but hovering on the pixel pionts also shows the values for RGB.
Thank you.

 Accepted Answer

Use the scatter3 (link) function, and the view (link) function, specifically:
view(0, 90)

3 Comments

Perfect, thank you. I was trying to do that manually, but this is much better.
As always, my pleasure.
Hi Star Strider
Is it possible to scatter 3D points (x y z) on a 2D plot (S ,T).

Sign in to comment.

More Answers (0)

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!