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

    %% Query Sheet Names
% Create a datastore containing the file |airlinesubset_small.xlsx|.
ssds = spreadsheetDatastore('airlinesmall_subset.xlsx')

%%
% Query the sheet names of the first (and only) file in the datastore.
sheetnames(ssds,1)