scatter x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); scatter(x,y) plot x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); plot(x,y,'o')