openfig doesn't assign fig number

1 view (last 30 days)
Bill betz
Bill betz on 17 Apr 2017
Commented: Bill betz on 17 Apr 2017
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.

Accepted Answer

Jan
Jan on 17 Apr 2017
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.
  1 Comment
Bill betz
Bill betz on 17 Apr 2017
Thank you Jan Simon! Had I but written earlier, I could have saved a lot of time. bill.betz@ucdenver.edu

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!