Main Content



Information on all files in file-set object


allFilesInfo = resolve(fs)


allFilesInfo = resolve(fs) returns file information on all the files from the file-set object fs.

Input Arguments

expand all

Input file-set object, specified as a object. To create a DsFileSet object, see

Output Arguments

expand all

File information for all files in the file set, returned as a table. The table contains the columns FileName and FileSize.


Get File Information on All Files

Create a file-set object and get information for all the files in the file-set object at the same time.

Create a file-set object for all .mat files in a folder.

folder = fullfile(matlabroot,'toolbox','matlab','demos');  
fs =,'FileExtensions','.mat');

Obtain a table with information on all the files using resolve. The table contains columns for FileName and FileSize.

allfiles = resolve(fs);

Version History

Introduced in R2017b