%% File Information
% Create a datastore containing two images. Read only the second image and display the corresponding file name and size (bytes).

ds = datastore({'street1.jpg','street2.jpg'});
[img,info] = readimage(ds,2);
info.Filename

%

info.FileSize

% Copyright 2015 The MathWorks, Inc.