Syntax
Description
[pathstr,name,ext,versn] = fileparts('
returns the path, filename, extension, and version for the specified file. The returned filename'
) ext
field contains a dot (.
) before the file extension.
The fileparts
function is platform dependent.
You can reconstruct the file from the parts using
Examples
This example returns the parts of file
to path
, name
, ext
, and ver
.
No comments:
Post a Comment