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.

 Akzeptierte Antwort

Jan
Jan am 17 Apr. 2017

0 Stimmen

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 Kommentar

Bill betz
Bill betz am 17 Apr. 2017
Thank you Jan Simon! Had I but written earlier, I could have saved a lot of time. bill.betz@ucdenver.edu

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 17 Apr. 2017

Kommentiert:

am 17 Apr. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by