new_dir.m
by Stephan Koehler
05 Nov 2009
(Updated 23 Nov 2009)
This is an enhancement to MATLAB's dir function, for dealing with sequentially numbered files.
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 16 Nov 2009 |
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. |
| 19 Nov 2009 |
Thanks for the comment Jan. I fixed the varargin bug (it was just an oversight), and adopted your other suggestions. |
| 19 Nov 2009 |
Bug fix, and added the option to restrict search to directories or non-directories. |
| 23 Nov 2009 |
Improvement for handling errors |
|
Contact us at files@mathworks.com