MATLAB: Scale data on a plot by opacity

opacityplot

Hi,
I have a set of data that is plotted, in 2D, as a bunch of points (a scatter plot). Each point also has an intensity associated with it. How can I plot the data such that the intensity is represented by shades of color?
I.e. currently I'm specifying the appearance of the points with 'ro' string, such that each point is a red dot. How do I change this to be scaled such that the most "intense" value is deep red, and the least intense values are grey?
I've seen this done before, so I know it's possible.
Thanks!

Best Answer

See Vary Circle Color in the scatter documentation.