How to publish a script including many figures but not opening them on the screen

4 vues (au cours des 30 derniers jours)
TingTing
TingTing le 7 Jan 2016
Modifié(e) : Stephen23 le 8 Jan 2016
I have a script which plots many figures. I would like to publish it, with all the figures. But I don't need all the figures to be activated and shown on the screen. There are dozens of them and I will have to close them one by one manually. How should I do it?

Réponses (1)

Stephen23
Stephen23 le 7 Jan 2016
Modifié(e) : Stephen23 le 8 Jan 2016
Here are a few ideas to make managing figures easier:
  • Instead of multiple figures just create one figure, and then update and change its axes and any plotted data as required.
  • Use the visible figure property.
  • Dock the figures.
  • Store the figure handles in a vector, and then delete (in code) them once they are superfluous.
You will need to consider what works best for your situation, and of course it will require more thought and work than if you click them closed manually. I would highly recommend that you use one figure and change its contents, or if multiple figures really are necessary then keep track of their handles. Read this:

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by