MATLAB: After adding a marker on an image, can it be removed.

imagemarker

I add a marker at a particular pixel location (1,1) int his case, using the following
img=rand(151);
axes(handles.axes1)
imshow(img);
yth_row=img(1,:);
xth_col=img(:,1);
hold on
plot(5,6,'r.','MarkerSize',20)
hold off;
Is it possible to retain the image, but remove the marker? Thanks Jason

Best Answer

delete( findobj(gca, 'type', 'line') );