Sometimes you need a fresh figure, but you want to control/save the figure number. This script retrieves the list of opened figure windows and finds n_requested unused figure numbers.
This code is written to be portable over OS (Windows/Mac/Unix) and platform (Matlab/Octave). It should work on just about any version.
Citation pour cette source
Rik (2025). getfignum(n_requested) (https://fr.mathworks.com/matlabcentral/fileexchange/61505-getfignum-n_requested), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2016b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Octave dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
