www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PreviewContentsOfTallTableExample.m
%% Preview Contents of Tall Table % Create a tall table and preview the first few rows of data. % % Create a tall table for the |airlinesmall.csv| data set. Select a subset % of the variables to work with. Use |head| to extract the first few rows % of data. varnames = {'Year','Month','ArrDelay','DepDelay','UniqueCarrier'}; ds = datastore('airlinesmall.csv','TreatAsMissing','NA',... 'SelectedVariableNames',varnames); T = tall(ds) %% tt = head(T) %% % Collect the results into memory to view the data. t8 = gather(tt)