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

    %% Partition Datastore into Specific Number of Parts  

%% 
% Create a datastore from the sample file, |airlinesmall.csv|, which contains
% tabular data. 
ds = tabularTextDatastore('airlinesmall.csv');  

%% 
% Partition the datastore into three parts. 
subds = partition(ds,3,1)