Show selecting rectangle in figure

Hello,
I have a figure, in that figure I want to manually select some data and then filter out the rest.
For that I'd like to use ginput to select my corners, but I'd like to see the rectangle (like it shows when you use the zoom in tool to select the area).
Is it possible do something like that ? If so how
Thx in advance for any input,

2 comentarios

Sebastiano Marinelli
Sebastiano Marinelli el 5 de Sept. de 2022
I'm not sure if i get the question, but you can try with "drawrectangle";
Adrien
Adrien el 5 de Sept. de 2022
thx, that helps, i'll draw the rectangle then get the rectangle limits it return inside the rectangle object

Iniciar sesión para comentar.

 Respuesta aceptada

Image Analyst
Image Analyst el 5 de Sept. de 2022

1 voto

See my attached drawrectangle demo. Other similar demos for drawing other things are also attached in case you need them.

Más respuestas (0)

Preguntada:

el 5 de Sept. de 2022

Respondida:

el 5 de Sept. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by