Plotting a 2D plot with plot point colors depending on different column

I'm trying to create a 2D plot where certain points will be different colors depending on a 3rd column value. Is there an easy way to accomplish this?

Community Treasure Hunt

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

Start Hunting!

Translated by