MATLAB Function Reference
  Go to function:
    Search    Help Desk 
fileparts    See Also

Filename parts

Syntax

Description

[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]).

See Also

fullfile    Build full filename from parts



[ Previous | Help Desk | Next ]