MATLAB: Plot a row with different color

plot

I have a simple 10×2 matrix with random values, scattered in a plot
a=rand(10, 2)*10;
scatter(a(:, 1),a(:, 2))
Suppose somehow I got values of a row, without knowing which row exactly it is, is there a way to draw the plot again, but this time the certain row will be painted in a different color than the others?

Best Answer

a=rand(10, 2)*10;
scatter(a(:, 1),a(:, 2))
hold on
x = randi(length(a)) %your random row
scatter(a(x,1),a(x,2),'m')