Get mulitple figure handles

Hello together,
I'd like to use the mouse, to select multiple figures and then somehow get the handles of all the selected figures. Is there a way to do this?
Thank you for your effort.

4 Comments

Not that I am aware of, though others may be able to suggest something.
Sure there are ways that you could do this, but likely there is something more to what you are trying to do which may have better solutions.
1. Do you want these to appear in the Base workplace or should these handles be used somewhere else?
2. Why would you not just create the handles at creation time?
3. Do you need them to each be a different variable?
4. What do you plan on doing with the "selected" figures after?
5. Should you be able to un-select a figure window?
It is my understanding that you want to select multiple figures using mouse and get the handles of multiple figures.
You can get the handle of the current figure using mouse by configuring the call back function and using the gcf command.
You can also create handles at the time of creating figures.
There is no way to "select" multiple figures simultaneously. There is only one active figure at a time, and no built-in notion of "selected" figures.
I agree with Brendan, more context about what you are trying to accomplish will help people propose workarounds.

Sign in to comment.

Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Asked:

on 25 Jul 2016

Commented:

on 2 Aug 2016

Community Treasure Hunt

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

Start Hunting!