Вот пример, основанный на ответе Джонаса на ваш другой вопрос:
%# sample image
I = imread('autumn.tif');
figure, imshow(I)
%# location of random feature points
featLoc = randi([1 200], [10 2]);
%# draw first 5 points as one set, the rest as another with a different color
lineProps = {'LineStyle','none', 'LineWidth',2, 'Marker','o', 'MarkerSize',10};
line(featLoc(1:5,1), featLoc(1:5,2), 'Color','r', lineProps{:})
line(featLoc(6:end,1), featLoc(6:end,2), 'Color','b', lineProps{:})