www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PreviewDataInTabularTextDatastoreExample.m
%% Preview Data in TabularTextDatastore %% % Create a datastore from the sample file, |airlinesmall.csv|, which % contains tabular data. ds = tabularTextDatastore('airlinesmall.csv','TreatAsMissing','NA'); %% % Modify the |SelectedVariableNames| property % to specify the variables of interest. ds.SelectedVariableNames = {'DepTime','ArrTime','ActualElapsedTime'}; %% % Preview the data for the selected variables. data = preview(ds)