How to turn off drawrectangle?
Afficher commentaires plus anciens
I used drawrectangle to draw a rectangle on an image and adjust its size and position, but then I can't figure out how to turn off its adjustability and get its final position.
I tried left and right clicking 1X or 2X in the image, next to the image, etc., but the drag points still remain and it is possible to adjust it. Any ideas? Or is there a better function to draw a rectangle, adjust it, finalize it, then get its final position?
figure;
% Draw an example image
peaks;
view(2);
% Draw a rectangle
h = drawrectangle; % But after adjusting, how can I turn off the adjustability?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Descriptive Statistics and Visualization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!