new_dir.m

This is an enhancement to MATLAB's dir function, for dealing with sequentially numbered files.
698 download
Aggiornato 23 nov 2009

Visualizza la licenza

This function is designed for dealing more easily with filenames. It is particularly useful for locating files with a numerical suffix, as might be used for data files that are sequentially numbered. In addition to the fields of dir, it also returns a path field and a number field. It also allows for executing functions whose input is a filename. Examples are open, delete, ...

Type help new_dir to find examples.

Cita come

Stephan Koehler (2024). new_dir.m (https://www.mathworks.com/matlabcentral/fileexchange/25753-new_dir-m), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su File Operations in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.5.0.0

Improvement for handling errors

1.4.0.0

Bug fix, and added the option to restrict search to directories or non-directories.

1.3.0.0

Thanks for the comment Jan. I fixed the varargin bug (it was just an oversight), and adopted your other suggestions.

1.2.0.0

Bugs have been fixed, and examples are much easier. to get started create a test directory by typing "new_dir -generate", and follow the examples in help new_dir.

1.0.0.0