returns the path, filename and extension for a file path
[path, fname, extension] = fileparts(fullpath) value = fileparts(fullpath, sel)
a string or a string matrix, the given file path.
a optional character string selector, with possible values:
'path'
, 'fname'
or 'extension'
.
a string or a string matrix, the path of the directory pointed to by fullpath
.
a string or a string matrix, the filename part is any or ''
.
a string or a string matrix, the extension part is any or ''
.
a string or a string matrix, depending on sel
value.
[path, fname, extension] = fileparts(fullpath)
splits the
fullpath
character string in its three parts: the path of the
directory pointed to, the filename part, the extension part
including the dot.