MATLAB: Openfig doesn’t assign fig number

guideopenfig

I write a GUI with guide, and use the option 'save as fig file only' as pv.fig In my program (pv), I call openfig – h=openfig('pv.fig',new) openfig does not assign a number to the figure. h.Number returns [] Help! I need that number to manage things with multiple figures open.

Best Answer

If the 'IntegerHandle' property of the figure is set to 'off', the figure dows not get a 'Number'. Either set 'IntegerHandle' to 'on' or use the much smarter handles instead of the old fashioned integer handles.
Related Question