so in continuation of my problem a while ago, having this suggested program:
%// Input
A =[
2 1 5
1 3 10
1 -2 5
0 5 25
5 0 25
1 1 2
-1 -1 2]
[unqcol3,unqidx,allidx] = unique(A(:,3),'stable')
counts = sum(bsxfun(@eq,A(:,3),unqcol3.'),1) %//'
out =[A(unqidx,:) counts(:)]
scatter(out(:,3), out(:,4))
so it will generate an array and a plot like this:
a b d counts
2 1 5 2
1 3 10 1
0 5 25 2
1 1 2 2
d vs. counts

but i want to put (a,b) as a labels on each scatter point, so this the plot out put i want:

so as you can see the corresponding a,b will automatically labelled on each scatter points, please help thanks.

