Question about mouse click on figure
Mostrar comentarios más antiguos
Hello,
I am trying to put marks on the figure where I click and save it. I used 'ginput'
imshow('image.png')
for i = 1:1000
[p(i,1), p(i,2)] = ginput;
hold on;
plot(p(i,1), p(i,2));
hold off;
end
I found out that 'ginput' is not only taking 'left mouse click,' but also any other mouse clicks or keyboard pressing. Also, I don't know how to undo marking on the figure.
My questions are: Is there any way to only use left mouse click? And, is there any way to undo marking on the figure?
I will appreciate any advice.
Thank you
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Exploration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!