MATLAB fileparts function
Return filename parts.
character string representing pathname to be parsed
Determines the path, filename, extension, and version for the specified file.
ext contains a dot (.) before the file extension.
versn is always an empty string as the field is provided
for compatibility with its namesake's results.
Returns a list with components:
character string representing directory path
character string representing base of file name
character string representing file extension
character string representing version. Unused
Returns same insane results as does its namesake when handling relative
directories, UNIX hidden files, and tilde expansion. Hidden files are
name containing a zero length vector and
containing the actual name.
For best results, use this routine to process files, not directories.
P. Roebuck firstname.lastname@example.org
1 2 3