View Full Version : Matlab scatter plot help
Poisonous
Mar7-11, 06:04 PM
I have a scatter plot of data already created. I want to add a different colored point to the plot at specific coordinates. How can I do this? I tried using hold on, plotting my data, then writing scatter(1,0,r) hold off to plot a red point at (1,0) but its not working.
caffenta
Mar7-11, 08:50 PM
You're missing the size parameter. The scatter function goes: scatter(X, Y, S, C) (http://www.mathworks.com/help/techdoc/ref/scatter.html).
If you want the standard size, use [].
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.