MATLAB: Plot with dot and different colors

change colorplot

I am using plot function where i need dots.Also I want to change colors?How can I do it.
plot(x,y,'.');
Above function plot the dots but how I change the dots color red or green,etc The following doesn't work:
plot(x,y,'.','r:');
Suggest any answer or solution..

Best Answer

plot(x,y,'r.')
You may wish to consider using scatter()
Related Question