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

    %% Get Import Options for Variable
% Access  the variable import options object that controls the importing of
% a variable using the |getvaropts| function.
%%
% Create import options from a file. The options object is a collection of
% individual variable import options. 
opts = detectImportOptions('patients.xls')
 
%%
% Get the variable import options object for the specified variable. 
varOpts = getvaropts(opts, 'Systolic') 
 
%%
% To modify the variable import options, see the |setvaropts| and
% |setvartype| function reference pages.