| MATLAB Function Reference | Search  Help Desk |
| fileparts | See Also |
Syntax
[path,name,ext,ver] = fileparts(file)
Description
[path,name,ext,ver] = fileparts(file)
returns the path, filename, extension, and version for the specified file. ver will be nonempty only on VMS systems. fileparts is platform dependent.
You can reconstruct the file from the parts using
fullfile(path,[name ext ver])
See Also
fullfile