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