www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CreateDatastoreforImageDataExample.m

    %% Create Datastore for Image Data
% Create a datastore associated with all .tif files in the MATLAB path and its 
% subfolders.

% Copyright 2015 The MathWorks, Inc.


ds = datastore(fullfile(matlabroot, 'toolbox', 'matlab'), 'IncludeSubfolders', true, 'FileExtensions', '.tif', 'DatastoreType', 'image')
%% 
%