getfilenum.mBack to Contents<< Prev |  Next >> 

getfilenum
Get the index of a series of files.

Description
NUM = getfilenum (NAME, P) returns an array of integers indexing 
the filenames (or directory names) matching NAME from the current 
directory. The integers are searched in the strings following the 
substring P. Wildcards (*) and brackets ([], see expandstr) may be used 
in NAME, including in intermediate pathnames. 
 
Examples: 
 
  If the files 'B01_t12.vec','B02_t18.vec', 'B03_t24.vec' are present 
  in the current directory, 
  getfilenum ('*.vec', '_t') returns [12 18 24]. 
 
  n=getfilenum('*/*.JPG','DSC') returns the indices of JPG-files. 
 
F. Moisy 
Revision: 1.02,  Date: 2005/10/14. 
 
See Also
expandstr, rdir, renumberfile. 

 Previous: gaussmatNext: getimx 

Help file generated by m2html 1.06