fileparts_(fnames)

Modified function fileparts()

You are now following this Submission

% [PATHSTR,NAME,EXT] = fileparts_(FILE), similar to built-in function.
% However, it is modified for easier use.
%
% - Works platform independent
% - Can handle cells and string input
% - Provides different output, depending on number of outputs.
% output == 0: [file.ext]
% output == 1: [folder/file.ext]
% output == 2: [path, file.ext]
% output == 3: [path, file, ext]
%
% Ben van Oeveren, 14-05-2016, VU Amsterdam

Cite As

Ben Oeveren (2026). fileparts_(fnames) (https://uk.mathworks.com/matlabcentral/fileexchange/57128-fileparts_-fnames), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.0.0

%Can handle cells and strings as input
%typo

1.0.0.0