%% Load List of Variables into Structure Array
% The file, durer.mat, contains variables X, caption, and map. Create a cell array of variable names to load.

filename = 'durer.mat';
myVars = {'X','caption'};
S = load(filename,myVars{:})

% Only the variables X and caption are loaded into the structure array, S.
% Copyright 2012 The MathWorks, Inc.