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

Return filename parts

Syntax

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

See Also

fullfile



[ Previous | Help Desk | Next ]