You could also one-line it by grouping the data as vector of vectors:
scatter([x1,x2,x3], [y1,y2,y3])