%% Create FileDatastore Object
% Create a datastore for the files in the MATLAB® demos folder that have a .mat extension.

fds = fileDatastore(fullfile(matlabroot,'toolbox','matlab','demos'),'ReadFcn',@load,'FileExtensions','.mat')