Skip to content

parse_filename.m

Basic Information

 PURPOSE: determine the directory, name and extention of a file

 SYNTAX:  [dir,nam,ext]= parse_filename(string_in)

 INPUT:
       string_in=  string containing full file name (ex: /dir/subdir/name.ext)

 OUTPUT: (example: /dir/subdir/name.ext)
       dir=  directory name of file with last /     (ex: /dir/subdir/)
       nam=  name of file without extention         (ex: name)
       ext=  extention name with pre .              (ex: .ext)

 CAUTION: Only works for single row vector of ASCII characterics

Dependencies