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

后端 未结 4 1103
野性不改
野性不改 2020-11-30 22:38

I have nine open figures in matlab (generated by another function) and I want to print them all to file. Does anyone know how to grab the handles of all open figures in MATL

4条回答
  •  日久生厌
    2020-11-30 23:36

    One of the best things to do is to NOT need to look for the handles. When you create each figure, capture its handle.

    h(1) = figure;
    h(2) = figure;
    ...
    

    As one of the developers here told me:

    They are called handles, because you are supposed to hold on to them

提交回复
热议问题