How do I make a scatter plot with color being related to the data?

I am trying to produce a 2d scatter plot where the color of the dots is related to a third variable. Are there commands to do this?

This question is closed.

Tags

Asked:

on 2 Dec 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!