Generates free pathname for a file
Usage : filename = genfilename(fname)
This simple code will generate a 'free' pathname based on your suggestion (fname), to make sure you can save your data to a file without overwriting to an existing one.
Simple options allow you to use a certain number of digits or start numbering at a defined number.
Citation pour cette source
Alexandre (2024). Generates free pathname for a file (https://www.mathworks.com/matlabcentral/fileexchange/38442-generates-free-pathname-for-a-file), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
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.1.0.0 | Faster for large number of existing files. |
||
1.0.0.0 |