fileparts
Get parts of file name
Description
Examples
Input Arguments
Output Arguments
Tips
To reconstruct a file name from the output of
fileparts
, usestrcat
to concatenate the file name and the extension that begins with a period (.) without a path separator. Then, usefullfile
to build the file name with the platform-dependent file separators where necessary. For example,fullfile(filepath, strcat(name,ext))
.
Extended Capabilities
Version History
Introduced before R2006a