MATLAB Answers

roi Position R2019b

8 views (last 30 days)
How can I get the position of my drawn rectangle using (drawrectangle(app.UIAxes);) in App designer Matlab?

  0 Comments

Sign in to comment.

Accepted Answer

Payas Bahade
Payas Bahade on 30 Apr 2020
Hi Aina,
The attached code for an app will let you draw a ROI as a rectangle in UIAxes and store the position of it in MATLAB base workspace as a variable ‘Position’. The position is updated if the any modifications are done to the drawn rectangle like resizing or dragging.
Hope this helps!

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!