%% Get Parts of File Names from a String Array
% Get the file path, name, and extension from each element within a 2x2 string array.

files1_4 = ["H:/user1/matlab/file1.txt",...
    "H:/user2/matlab/file2.txt";"H:/user3/matlab/file3.txt",...
    "H:/user4/matlab/file4.txt"];
[path,name,ext] = fileparts(files1_4)

% Copyright 2020 The MathWorks, Inc.