0

Possible Duplicate:
How do I get the handles of all open figures in MATLAB

The situation is following. I run a couple of tests, which plot a lot of figures. I would like to convert them to pdf and compile into one file. Since each time I may get different type of plots and different number of plots, I need to get the list of all figures in current matlab session or workspace. Is this doable?

Thanks

Community
  • 1
  • 1
Yan Zhu
  • 4,036
  • 3
  • 21
  • 37

1 Answers1

1
h = get(0,'Children');

will put the "handles" to the figures you currently have in the variable h. get(handle) and set(handle,...) are gigantically useful in general. The handle 0 points at the root of the display, so all the figures on the display are the root's Children.

mwengler
  • 2,738
  • 1
  • 19
  • 32