Matlab - plot multiple data sets on a scatter plot
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-03-20T02:36:21Z
Indexed on
2010/03/20
2:41 UTC
Read the original article
Hit count: 593
matlab
|scatter-plot
Hey all, I have 2 sets of data (Ax, Ay; Bx, By) - I'd like to plot both of these data sets on a scatter plot with different colors, but can't seem to get it to work because it seems scatter() does not work like plot(). Is it possible to do this?
I've tried...
scatter(Ax, Ay, 'g', Bx, By, 'b')
And
scatter(Ax, Ay, 'g')
scatter(Bx, By, 'b')
The first way returns an error. The latter only plots the Bx/By data.
Many thanks!
© Stack Overflow or respective owner