Syntactic analysis of filenames, splitting filenames to names and extensions, assigning default extension to filenames. This routine is used internally by other functions of the toolbox.
Syntax
nfilename = fnamanal(filename)
[nfilename,fnamsh,ext] = fnamanal(filename,stext)
Description
fnamanal analyzes the filename given in filename, puts the filename without extension into fnamsh, and the extension to ext. If stext is given (standard extension), and the filename has no extension, the standard one will be appended (preceded by a period) to the filename. The complete filename is given in nfilename.
Examples
fnam = 'inpchan'; [fnam,fnshort,ext] = fnamanal(fnam,'fbn')
fnam =
inpchan.fbn
fnshort =
inpchan
ext =
fbn
[ Previous | Help Desk | Next ]