How to change colour of data points depending on value of the data (i.e data range)

1 view (last 30 days)
How do you change the color of data points (using a colormap) depending on value of a third variable. Patches??
Longitude = Pos(: , 1);
Latitude = Pos(: , 2);
plot(Longitude, Latitude);
hold
Data = Pos(: , 3);

Accepted Answer

Walter Roberson
Walter Roberson on 18 Apr 2012
pointsize = 12;
scatter(Longitude, Latitude, pointsize, Data)

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!